summaryrefslogtreecommitdiffstats
path: root/libavcodec/aac_adtstoasc_bsf.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-09 23:46:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-10 00:26:48 +0200
commite5e0580b93a5bda34f62a5df50c1b15e610d4ad1 (patch)
tree11e0afba761fa3e452b0b778a4df0270e3932319 /libavcodec/aac_adtstoasc_bsf.c
parent8362a0ffed0b15a9977fcde947bcb49dfc06638b (diff)
downloadffmpeg-streaming-e5e0580b93a5bda34f62a5df50c1b15e610d4ad1.zip
ffmpeg-streaming-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c
index 6558c02..2e14b1a 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;
OpenPOWER on IntegriCloud