diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 607b906e26..ab3a49aff7 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -2155,6 +2155,8 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx, avctx->extradata_size = esize; memcpy(avctx->extradata, gb->buffer + (config_start_bit/8), esize); memset(avctx->extradata+esize, 0, FF_INPUT_BUFFER_PADDING_SIZE); + + skip_bits_long(gb, bits_consumed); } return bits_consumed;