From 6c6007ad94c402d33da9c5c73620e84064ea8fb2 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Fri, 15 Jul 2016 14:41:27 +0300 Subject: [PATCH] encoder: h264: Fix MVC encode while enabling dct8x8 Pack the transform_8x8_mode_flag and other necessary rbsp data in packed_pps header for MVC encode. https://bugzilla.gnome.org/show_bug.cgi?id=768647 --- gst-libs/gst/vaapi/gstvaapiencoder_h264.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c index 8c06d2f2aa..0b2878d593 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c @@ -703,7 +703,9 @@ bs_write_pps (GstBitWriter * bs, WRITE_UINT32 (bs, redundant_pic_cnt_present_flag, 1); /* more_rbsp_data */ - if (profile == GST_VAAPI_PROFILE_H264_HIGH) { + if (profile == GST_VAAPI_PROFILE_H264_HIGH + || profile == GST_VAAPI_PROFILE_H264_MULTIVIEW_HIGH + || profile == GST_VAAPI_PROFILE_H264_STEREO_HIGH) { WRITE_UINT32 (bs, pic_param->pic_fields.bits.transform_8x8_mode_flag, 1); WRITE_UINT32 (bs, pic_param->pic_fields.bits.pic_scaling_matrix_present_flag, 1);