[FFmpeg-cvslog] r22160 - trunk/libavcodec/vdpau.c

cehoyos subversion
Wed Mar 3 01:09:57 CET 2010


Author: cehoyos
Date: Wed Mar  3 01:09:57 2010
New Revision: 22160

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

Based on a patch by NVIDIA.

Modified:
   trunk/libavcodec/vdpau.c

Modified: trunk/libavcodec/vdpau.c
==============================================================================
--- trunk/libavcodec/vdpau.c	Tue Mar  2 22:59:27 2010	(r22159)
+++ trunk/libavcodec/vdpau.c	Wed Mar  3 01:09:57 2010	(r22160)
@@ -317,6 +317,10 @@ void ff_vdpau_mpeg4_decode_picture(MpegE
     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;



More information about the ffmpeg-cvslog mailing list