You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/aacdec_template: Fix 7.1 decoding with default strictness.
Broken in 4d9b9c5e
Fixes ticket #9057.
This commit is contained in:
@@ -639,11 +639,14 @@ static int set_default_channel_config(AACContext *ac, AVCodecContext *avctx,
|
|||||||
* As actual intended 7.1(wide) streams are very rare, default to assuming a
|
* As actual intended 7.1(wide) streams are very rare, default to assuming a
|
||||||
* 7.1 layout was intended.
|
* 7.1 layout was intended.
|
||||||
*/
|
*/
|
||||||
if (channel_config == 7 && avctx->strict_std_compliance < FF_COMPLIANCE_STRICT && (!ac || !ac->warned_71_wide++)) {
|
if (channel_config == 7 && avctx->strict_std_compliance < FF_COMPLIANCE_STRICT) {
|
||||||
av_log(avctx, AV_LOG_INFO, "Assuming an incorrectly encoded 7.1 channel layout"
|
|
||||||
" instead of a spec-compliant 7.1(wide) layout, use -strict %d to decode"
|
|
||||||
" according to the specification instead.\n", FF_COMPLIANCE_STRICT);
|
|
||||||
layout_map[2][2] = AAC_CHANNEL_SIDE;
|
layout_map[2][2] = AAC_CHANNEL_SIDE;
|
||||||
|
|
||||||
|
if (!ac || !ac->warned_71_wide++) {
|
||||||
|
av_log(avctx, AV_LOG_INFO, "Assuming an incorrectly encoded 7.1 channel layout"
|
||||||
|
" instead of a spec-compliant 7.1(wide) layout, use -strict %d to decode"
|
||||||
|
" according to the specification instead.\n", FF_COMPLIANCE_STRICT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user