From: Carl Eugen Hoyos Date: Tue, 2 Mar 2010 17:12:41 +0000 (+0000) Subject: Pass correct buffer-pointer and buffer-size to hardware accelerated X-Git-Tag: v0.6~988 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf9d70d5e453ea6226c985308a9c5c4eb7db5f40;p=platform%2Fupstream%2Flibav.git Pass correct buffer-pointer and buffer-size to hardware accelerated decoders when decoding packed B-frames. Originally committed as revision 22149 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 9ed4bdb..e690583 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -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; }