Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2011-10-01 12:47:11 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 20:18:06 +0400
commitedf1a8e361fb737ec3d4c637f82de10a59bd41e2 (patch)
tree300403e052785a84e3b0c5be3159f312de62ef4b /libavcodec/g729dec.c
parent41597194730387c8d234fb61c9ceafb17379758d (diff)
g729dec: initialize bit reader with the correct buffer size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/g729dec.c')
-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);