v2: rebased
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Tested-by: Luo, Focus <focus.luo@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit
6fdf1905eb13597767c65e9f5839edf3986b6a1c)
unsigned int rate_control_mode = encoder_context->rate_control_mode;
struct gen6_mfc_context *mfc_context = encoder_context->mfc_context;
+ if (encoder_context->codec != CODEC_H264 &&
+ encoder_context->codec != CODEC_H264_MVC)
+ return;
+
if (rate_control_mode == VA_RC_CBR) {
bool brc_updated;
- assert(encoder_context->codec != CODEC_MPEG2);
brc_updated = intel_mfc_brc_updated_check(encode_state, encoder_context);