Commit a2874c57 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/aac_ac3_parser: Use ff_adts_header_parse_buf()

instead of avpriv_adts_header_parse(). Using the former avoids
an indirection.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 12ded9cd
......@@ -144,10 +144,9 @@ get_next:
#endif
} else {
#if CONFIG_AAC_PARSER
AACADTSHeaderInfo hdr, *phrd = &hdr;
int ret = avpriv_adts_header_parse(&phrd, buf, buf_size);
if (ret < 0)
AACADTSHeaderInfo hdr;
if (buf_size < AV_AAC_ADTS_HEADER_SIZE ||
ff_adts_header_parse_buf(buf, &hdr) < 0)
return i;
bit_rate = hdr.bit_rate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment