ac3enc: remove check for mismatching channels and channel_layout

This commit is contained in:
Justin Ruggles 2011-04-19 19:06:52 -04:00
parent 688b09fa59
commit 8745e9c458
1 changed files with 0 additions and 2 deletions

View File

@ -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;