aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2011-10-01 10:47:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 18:18:06 +0200
commitedf1a8e361fb737ec3d4c637f82de10a59bd41e2 (patch)
tree300403e052785a84e3b0c5be3159f312de62ef4b
parent41597194730387c8d234fb61c9ceafb17379758d (diff)
downloadffmpeg-edf1a8e361fb737ec3d4c637f82de10a59bd41e2.tar.gz
g729dec: initialize bit reader with the correct buffer size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/g729dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index e818b463a8..d76567974f 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);