ac3enc: remove check for mismatching channels and channel_layout
This commit is contained in:
parent
688b09fa59
commit
8745e9c458
@ -1988,8 +1988,6 @@ static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
|
||||
ch_layout = *channel_layout;
|
||||
if (!ch_layout)
|
||||
ch_layout = avcodec_guess_channel_layout(channels, CODEC_ID_AC3, NULL);
|
||||
if (av_get_channel_layout_nb_channels(ch_layout) != channels)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
s->lfe_on = !!(ch_layout & AV_CH_LOW_FREQUENCY);
|
||||
s->channels = channels;
|
||||
|
Loading…
x
Reference in New Issue
Block a user