OSDN Git Service

vaapi_h264: fix RefPicList[] field flags.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 19 Oct 2016 22:42:53 +0000 (23:42 +0100)
committerMark Thompson <sw@jkqxz.net>
Mon, 24 Oct 2016 19:17:47 +0000 (20:17 +0100)
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 a12d3188, and that affected
multiple interlaced video streams.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavcodec/vaapi_h264.c

index fa13fc0..7d8dc34 100644 (file)
@@ -162,7 +162,8 @@ static void fill_vaapi_RefPicList(VAPictureH264 RefPicList[32],
     unsigned int i, n = 0;
     for (i = 0; i < ref_count; i++)
         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++)
         init_vaapi_pic(&RefPicList[n]);