Commit 2f9c978a authored by NVIDIA Corporation's avatar NVIDIA Corporation Committed by Carl Eugen Hoyos

Do not set h264.is_reference for pictures that are delayed, but not

actually reference frames.

Patch by NVIDIA

Originally committed as revision 17596 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f90b5516
...@@ -147,7 +147,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) ...@@ -147,7 +147,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s)
render->info.h264.field_order_cnt[i] = foc; render->info.h264.field_order_cnt[i] = foc;
} }
render->info.h264.is_reference = s->current_picture_ptr->reference ? VDP_TRUE : VDP_FALSE; render->info.h264.is_reference = (s->current_picture_ptr->reference & 3) ? VDP_TRUE : VDP_FALSE;
render->info.h264.frame_num = h->frame_num; render->info.h264.frame_num = h->frame_num;
render->info.h264.field_pic_flag = s->picture_structure != PICT_FRAME; render->info.h264.field_pic_flag = s->picture_structure != PICT_FRAME;
render->info.h264.bottom_field_flag = s->picture_structure == PICT_BOTTOM_FIELD; render->info.h264.bottom_field_flag = s->picture_structure == PICT_BOTTOM_FIELD;
......
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