diff --git a/src/gallium/frontends/va/picture_h264_enc.c b/src/gallium/frontends/va/picture_h264_enc.c index 1f0e80887d9..5159cdd8a0f 100644 --- a/src/gallium/frontends/va/picture_h264_enc.c +++ b/src/gallium/frontends/va/picture_h264_enc.c @@ -215,6 +215,7 @@ vlVaHandleVAEncSequenceParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *con context->desc.h264enc.seq.time_scale = time_scale; context->desc.h264enc.rate_ctrl[0].frame_rate_num = time_scale / 2; context->desc.h264enc.rate_ctrl[0].frame_rate_den = num_units_in_tick; + context->desc.h264enc.intra_idr_period = h264->intra_idr_period; if (h264->frame_cropping_flag) { context->desc.h264enc.seq.enc_frame_cropping_flag = h264->frame_cropping_flag; diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index 26f0ad554bc..5d51d980126 100644 --- a/src/gallium/include/pipe/p_video_state.h +++ b/src/gallium/include/pipe/p_video_state.h @@ -499,6 +499,8 @@ struct pipe_h264_enc_picture_desc struct pipe_h264_enc_pic_control pic_ctrl; struct pipe_h264_enc_dbk_param dbk; + unsigned intra_idr_period; + unsigned quant_i_frames; unsigned quant_p_frames; unsigned quant_b_frames;