changeset 11332:c66e0bc700dd libavcodec

Pass correct buffer-pointer and buffer-size to hardware accelerated decoders when decoding packed B-frames.
author cehoyos
date Tue, 02 Mar 2010 17:12:41 +0000
parents f127f6528cb1
children e7c30cba2c7b
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Tue Mar 02 03:16:27 2010 +0000
+++ b/h263dec.c	Tue Mar 02 17:12:41 2010 +0000
@@ -618,12 +618,12 @@
         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;
     }