Browse Source

g729dec: initialize bit reader with the correct buffer size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Vitor Sessak Michael Niedermayer 14 years ago
parent
commit
edf1a8e361
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/g729dec.c

+ 1
- 1
libavcodec/g729dec.c View File

@@ -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);


Loading…
Cancel
Save