vaapi: filter out DELAYED_PIC_REF flag to determine field.

This fixes ticket #23.
This commit is contained in:
Gwenole Beauchesne 2011-03-28 15:55:41 +02:00
parent f99abb15a1
commit 621f4c98df
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ static void fill_vaapi_pic(VAPictureH264 *va_pic,
{ {
if (pic_structure == 0) if (pic_structure == 0)
pic_structure = pic->reference; 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->picture_id = ff_vaapi_get_surface_id(pic);
va_pic->frame_idx = pic->long_ref ? pic->pic_id : pic->frame_num; va_pic->frame_idx = pic->long_ref ? pic->pic_id : pic->frame_num;