Commit 09ce8462 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Reinhard Tartler
Browse files

vaapi: filter out DELAYED_PIC_REF flag to determine field.

This fixes ticket #23.

(cherry picked from commit 621f4c98

)
Signed-off-by: default avatarReinhard Tartler <siretart@tauware.de>
parent 0c68c804
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment