1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00

g729dec: initialize bit reader with the correct buffer size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Vitor Sessak 2011-10-01 10:47:11 +02:00 committed by Michael Niedermayer
parent 4159719473
commit edf1a8e361

View File

@ -436,7 +436,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
frame_erasure |= buf[i]; frame_erasure |= buf[i];
frame_erasure = !frame_erasure; 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); ma_predictor = get_bits(&gb, 1);
quantizer_1st = get_bits(&gb, VQ_1ST_BITS); quantizer_1st = get_bits(&gb, VQ_1ST_BITS);