encoder: h264: Fix MVC encode while enabling dct8x8
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 15 Jul 2016 11:41:27 +0000 (14:41 +0300)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 15 Jul 2016 11:41:27 +0000 (14:41 +0300)
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

index 8c06d2f..0b2878d 100644 (file)
@@ -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);