[FFmpeg-cvslog] g729dec: initialize bit reader with the correct buffer size
Vitor Sessak
git at videolan.org
Sat Oct 1 18:18:46 CEST 2011
ffmpeg | branch: master | Vitor Sessak <vitor1001 at gmail.com> | Sat Oct 1 10:47:11 2011 +0200| [edf1a8e361fb737ec3d4c637f82de10a59bd41e2] | committer: Michael Niedermayer
g729dec: initialize bit reader with the correct buffer size
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=edf1a8e361fb737ec3d4c637f82de10a59bd41e2
---
libavcodec/g729dec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index e818b46..d765679 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -436,7 +436,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
frame_erasure |= buf[i];
frame_erasure = !frame_erasure;
- init_get_bits(&gb, buf, buf_size);
+ init_get_bits(&gb, buf, 8*buf_size);
ma_predictor = get_bits(&gb, 1);
quantizer_1st = get_bits(&gb, VQ_1ST_BITS);
More information about the ffmpeg-cvslog
mailing list