[FFmpeg-cvslog] vaapi: filter out DELAYED_PIC_REF flag to determine field.

Gwenole Beauchesne git at videolan.org
Sun Apr 10 03:45:27 CEST 2011


ffmpeg | branch: master | Gwenole Beauchesne <git at videolan.org> | Tue Mar 29 11:07:29 2011 +0200| [09ce846206ff9a112cc1e2727d0ba4b5f0216d9c] | committer: Reinhard Tartler

vaapi: filter out DELAYED_PIC_REF flag to determine field.

This fixes ticket #23.

(cherry picked from commit 621f4c98df4ee9fd604a614f31e09eef9dd7d3ca)

Signed-off-by: Reinhard Tartler <siretart at tauware.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09ce846206ff9a112cc1e2727d0ba4b5f0216d9c
---

 libavcodec/vaapi_h264.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
index f94e679..805e4ef 100644
--- a/libavcodec/vaapi_h264.c
+++ b/libavcodec/vaapi_h264.c
@@ -55,6 +55,7 @@ static void fill_vaapi_pic(VAPictureH264 *va_pic,
 {
     if (pic_structure == 0)
         pic_structure = pic->reference;
+    pic_structure &= PICT_FRAME; /* PICT_TOP_FIELD|PICT_BOTTOM_FIELD */
 
     va_pic->picture_id = ff_vaapi_get_surface_id(pic);
     va_pic->frame_idx  = pic->long_ref ? pic->pic_id : pic->frame_num;



More information about the ffmpeg-cvslog mailing list