mirror of https://git.ffmpeg.org/ffmpeg.git
vaapi_h264: fix RefPicList[] field flags.
Use new H264Ref.reference field to track field picture flags. The
H264Picture.reference flag in DPB is now irrelevant here.
This is a regression from git commit d8151a7
, and that affected
multiple interlaced video streams.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
c06fdacc3d
commit
88325c2e0b
|
@ -162,7 +162,8 @@ static void fill_vaapi_RefPicList(VAPictureH264 RefPicList[32],
|
||||||
unsigned int i, n = 0;
|
unsigned int i, n = 0;
|
||||||
for (i = 0; i < ref_count; i++)
|
for (i = 0; i < ref_count; i++)
|
||||||
if (ref_list[i].reference)
|
if (ref_list[i].reference)
|
||||||
fill_vaapi_pic(&RefPicList[n++], ref_list[i].parent, 0);
|
fill_vaapi_pic(&RefPicList[n++], ref_list[i].parent,
|
||||||
|
ref_list[i].reference);
|
||||||
|
|
||||||
for (; n < 32; n++)
|
for (; n < 32; n++)
|
||||||
init_vaapi_pic(&RefPicList[n]);
|
init_vaapi_pic(&RefPicList[n]);
|
||||||
|
|
Loading…
Reference in New Issue