mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-08 23:25:31 +01:00
avcodec/aac_ac3_parser: simplify
Use ff_adts_header_parse_buf() wrapper to simplify as GetBitContext is
no longer needed (it was introduced for USAC).
Partially reverts 64bb91fd3b.
Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
9bd10fa32c
commit
593b426902
@@ -147,11 +147,9 @@ get_next:
|
||||
} else {
|
||||
#if CONFIG_AAC_PARSER
|
||||
AACADTSHeaderInfo hdr;
|
||||
GetBitContext gb;
|
||||
|
||||
init_get_bits8(&gb, buf, buf_size);
|
||||
if (buf_size < AV_AAC_ADTS_HEADER_SIZE ||
|
||||
ff_adts_header_parse(&gb, &hdr) < 0)
|
||||
ff_adts_header_parse_buf(buf, &hdr) < 0)
|
||||
return i;
|
||||
|
||||
avctx->profile = hdr.object_type - 1;
|
||||
|
||||
Reference in New Issue
Block a user