diff options
author | NVIDIA Corporation <> | 2009-02-26 01:03:01 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-26 01:03:01 +0000 |
commit | 2f9c978a07e61f7be1ca288bad37cbf7e705a520 (patch) | |
tree | 2c71859d92af976d7be8dbd2d166e7dcbf4c82f0 /libavcodec | |
parent | f90b55166e6a6d06d06fa1ba63f94f3d292cfd81 (diff) | |
download | ffmpeg-2f9c978a07e61f7be1ca288bad37cbf7e705a520.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index c594b7ec2d..034228d7d8 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -147,7 +147,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) 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.field_pic_flag = s->picture_structure != PICT_FRAME; render->info.h264.bottom_field_flag = s->picture_structure == PICT_BOTTOM_FIELD; |