diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-03-03 03:09:57 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-03-03 03:09:57 +0300 |
commit | 741a17e6b4b1bc6655718e7fd5e34fb224da763f (patch) | |
tree | df7d58d2fb1ca647ff019ef77af390c8ef534725 /libavcodec/vdpau.c | |
parent | 1233698bedf1e074a8bbe476303f7f3ec3270105 (diff) |
Support B-frames when decoding MPEG-4 with VDPAU hardware acceleration.
Based on a patch by NVIDIA.
Originally committed as revision 22160 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r-- | libavcodec/vdpau.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 7cc8ad1ca7..8b4f05873d 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -317,6 +317,10 @@ void ff_vdpau_mpeg4_decode_picture(MpegEncContext *s, const uint8_t *buf, assert(render); /* fill VdpPictureInfoMPEG4Part2 struct */ + render->info.mpeg4.trd[0] = s->pp_time; + render->info.mpeg4.trb[0] = s->pb_time; + render->info.mpeg4.trd[1] = s->pp_field_time >> 1; + render->info.mpeg4.trb[1] = s->pb_field_time >> 1; render->info.mpeg4.vop_time_increment_resolution = s->avctx->time_base.den; render->info.mpeg4.vop_coding_type = 0; render->info.mpeg4.vop_fcode_forward = s->f_code; |