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.
This commit is contained in:
Sreerenj Balachandran 2017-03-31 14:12:43 -07:00
parent 834557d5b6
commit be990f5ed4

View 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);
}