mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-21 23:03:13 +00:00
aac: Don't attempt to output configure an invalid channel configuration.
This commit is contained in:
parent
4d58e4cb4c
commit
94d47382e0
@ -589,10 +589,11 @@ static av_cold int aac_decode_init(AVCodecContext *avctx)
|
|||||||
ac->m4ac.chan_config = i;
|
ac->m4ac.chan_config = i;
|
||||||
|
|
||||||
if (ac->m4ac.chan_config) {
|
if (ac->m4ac.chan_config) {
|
||||||
if (set_default_channel_config(avctx, new_che_pos, ac->m4ac.chan_config) < 0 &&
|
int ret = set_default_channel_config(avctx, new_che_pos, ac->m4ac.chan_config);
|
||||||
avctx->error_recognition >= FF_ER_EXPLODE)
|
if (!ret)
|
||||||
return AVERROR_INVALIDDATA;
|
output_configure(ac, ac->che_pos, new_che_pos, ac->m4ac.chan_config, OC_GLOBAL_HDR);
|
||||||
output_configure(ac, ac->che_pos, new_che_pos, ac->m4ac.chan_config, OC_GLOBAL_HDR);
|
else if (avctx->error_recognition >= FF_ER_EXPLODE)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user