summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2017-03-31 14:12:43 -0700
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2017-03-31 14:14:08 -0700
commitbe990f5ed44b1b47df33936f94d7e01a18e103aa (patch)
treed041b9f978914241be3dde9b8fbefa0478643f0f /gst-libs
parent834557d5b614f920f8fd5fa20fb4f86c001e9a35 (diff)
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.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h264.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index 21d5d198..16e5b438 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);
}