encoder: h264: Fix Backward ReferencePicture flag setting
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 31 Mar 2017 21:12:43 +0000 (14:12 -0700)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 31 Mar 2017 21:14:08 +0000 (14:14 -0700)
This is a regression introduced by e829b62 which
override the reference flags and caused issues with
latest intel-vaapi-driver.

gst-libs/gst/vaapi/gstvaapiencoder_h264.c

index 21d5d19..16e5b43 100644 (file)
@@ -2027,7 +2027,8 @@ add_slice_headers (GstVaapiEncoderH264 * encoder, GstVaapiEncPicture * picture,
             reflist_1[i_ref]->poc;
         slice_param->RefPicList1[i_ref].flags |=
             VA_PICTURE_H264_SHORT_TERM_REFERENCE;
-        slice_param->RefPicList1[i_ref].flags |= reflist_1[i_ref]->frame_num;
+        slice_param->RefPicList1[i_ref].frame_idx |=
+            reflist_1[i_ref]->frame_num;
       }
       g_assert (i_ref == 1);
     }