diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-09 23:46:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-10 00:26:48 +0200 |
commit | e5e0580b93a5bda34f62a5df50c1b15e610d4ad1 (patch) | |
tree | 11e0afba761fa3e452b0b778a4df0270e3932319 /libavcodec/aac_adtstoasc_bsf.c | |
parent | 8362a0ffed0b15a9977fcde947bcb49dfc06638b (diff) | |
download | ffmpeg-e5e0580b93a5bda34f62a5df50c1b15e610d4ad1.tar.gz |
Fixed size given to init_get_bits().
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aac_adtstoasc_bsf.c')
-rw-r--r-- | libavcodec/aac_adtstoasc_bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c index 6558c0280f..2e14b1a0b6 100644 --- a/libavcodec/aac_adtstoasc_bsf.c +++ b/libavcodec/aac_adtstoasc_bsf.c @@ -72,7 +72,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, int pce_size = 0; uint8_t pce_data[MAX_PCE_SIZE]; if (!hdr.chan_config) { - init_get_bits(&gb, buf, buf_size); + init_get_bits(&gb, buf, buf_size * 8); if (get_bits(&gb, 3) != 5) { av_log_missing_feature(avctx, "PCE based channel configuration, where the PCE is not the first syntax element is", 0); return -1; |