diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c index e2361d3534..e10ce13a3b 100644 --- a/libavcodec/aac_ac3_parser.c +++ b/libavcodec/aac_ac3_parser.c @@ -148,7 +148,7 @@ get_next: #if CONFIG_AAC_PARSER AACADTSHeaderInfo hdr; GetBitContext gb; - int profile; + init_get_bits8(&gb, buf, buf_size); if (buf_size < AV_AAC_ADTS_HEADER_SIZE || ff_adts_header_parse(&gb, &hdr) < 0)