aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_h264.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2011-03-28 15:55:41 +0200
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2011-03-29 09:55:07 +0200
commit621f4c98df4ee9fd604a614f31e09eef9dd7d3ca (patch)
tree0227ea3396985fbce3437296c0b3fe6b5fd76ce6 /libavcodec/vaapi_h264.c
parentf99abb15a1f666b66a83ec31b13bfe01e3dd3845 (diff)
downloadffmpeg-621f4c98df4ee9fd604a614f31e09eef9dd7d3ca.tar.gz
vaapi: filter out DELAYED_PIC_REF flag to determine field.
This fixes ticket #23.
Diffstat (limited to 'libavcodec/vaapi_h264.c')
-rw-r--r--libavcodec/vaapi_h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
index cbe526b6e7..34e4976796 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;