mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avcodec/aac_ac3_parser: do not override the profile set by the decoder
Parsing the ADTS header is not enough to detect HE-AAC v1/v2. Regression since64bb91fd3b. Fixes #11600 Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commitf24474dcfc)
This commit is contained in:
committed by
James Almer
parent
571be3dc16
commit
485b823b84
@@ -152,7 +152,8 @@ get_next:
|
||||
ff_adts_header_parse_buf(buf, &hdr) < 0)
|
||||
return i;
|
||||
|
||||
avctx->profile = hdr.object_type - 1;
|
||||
if (avctx->profile == AV_PROFILE_UNKNOWN)
|
||||
avctx->profile = hdr.object_type - 1;
|
||||
/* ADTS does not support USAC */
|
||||
s1->key_frame = 1;
|
||||
bit_rate = hdr.bit_rate;
|
||||
|
||||
Reference in New Issue
Block a user