summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-03-02 17:12:41 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-03-02 17:12:41 +0000
commitbf9d70d5e453ea6226c985308a9c5c4eb7db5f40 (patch)
tree824d99cd8a2910c2e1557a7171111e49fe9065e5 /libavcodec/h263dec.c
parent88b83cac2436ed5afdaa42a46a1bf8f8915505b8 (diff)
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
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 9ed4bdb1b4..e690583010 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;
}