diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-09 23:46:00 +0200 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-09-15 13:23:04 -0700 |
commit | b59efc94347ccf0cbc2ff14a5a9e99819c5bdc4d (patch) | |
tree | 5b47b992b373e740509222dae25d471c180c0115 /libavcodec/aac_adtstoasc_bsf.c | |
parent | ea540401d6082474df8364169e2041e29e4dc407 (diff) | |
download | ffmpeg-b59efc94347ccf0cbc2ff14a5a9e99819c5bdc4d.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: Alex Converse <alex.converse@gmail.com>
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 fbb86f8af7..d1310c4149 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; |