Mercurial > libavcodec.hg
changeset 11333:e7c30cba2c7b libavcodec
Support B-frames when decoding MPEG-4 with VDPAU hardware acceleration.
Based on a patch by NVIDIA.
author | cehoyos |
---|---|
date | Wed, 03 Mar 2010 00:09:57 +0000 |
parents | c66e0bc700dd |
children | e0428148bcf7 |
files | vdpau.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vdpau.c Tue Mar 02 17:12:41 2010 +0000 +++ b/vdpau.c Wed Mar 03 00:09:57 2010 +0000 @@ -317,6 +317,10 @@ 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;