From be990f5ed44b1b47df33936f94d7e01a18e103aa Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Fri, 31 Mar 2017 14:12:43 -0700 Subject: [PATCH] encoder: h264: Fix Backward ReferencePicture flag setting 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c index 21d5d19843..16e5b43861 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c @@ -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); }