Commit 5817e488 authored by cehoyos's avatar cehoyos

Support B-frames when decoding MPEG-4 with VDPAU hardware acceleration.

Based on a patch by NVIDIA.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22160 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fa102182
...@@ -317,6 +317,10 @@ void ff_vdpau_mpeg4_decode_picture(MpegEncContext *s, const uint8_t *buf, ...@@ -317,6 +317,10 @@ void ff_vdpau_mpeg4_decode_picture(MpegEncContext *s, const uint8_t *buf,
assert(render); assert(render);
/* fill VdpPictureInfoMPEG4Part2 struct */ /* 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_time_increment_resolution = s->avctx->time_base.den;
render->info.mpeg4.vop_coding_type = 0; render->info.mpeg4.vop_coding_type = 0;
render->info.mpeg4.vop_fcode_forward = s->f_code; render->info.mpeg4.vop_fcode_forward = s->f_code;
......
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