[FFmpeg-cvslog] r22149 - trunk/libavcodec/h263dec.c

cehoyos subversion
Tue Mar 2 18:12:41 CET 2010


Author: cehoyos
Date: Tue Mar  2 18:12:41 2010
New Revision: 22149

Log:
Pass correct buffer-pointer and buffer-size to hardware accelerated
decoders when decoding packed B-frames.

Modified:
   trunk/libavcodec/h263dec.c

Modified: trunk/libavcodec/h263dec.c
==============================================================================
--- trunk/libavcodec/h263dec.c	Tue Mar  2 17:57:20 2010	(r22148)
+++ trunk/libavcodec/h263dec.c	Tue Mar  2 18:12:41 2010	(r22149)
@@ -618,12 +618,12 @@ retry:
         return -1;
 
     if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) {
-        ff_vdpau_mpeg4_decode_picture(s, buf, buf_size);
+        ff_vdpau_mpeg4_decode_picture(s, s->gb.buffer, s->gb.buffer_end - s->gb.buffer);
         goto frame_end;
     }
 
     if (avctx->hwaccel) {
-        if (avctx->hwaccel->start_frame(avctx, buf, buf_size) < 0)
+        if (avctx->hwaccel->start_frame(avctx, s->gb.buffer, s->gb.buffer_end - s->gb.buffer) < 0)
             return -1;
     }
 



More information about the ffmpeg-cvslog mailing list