summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-04-19 19:06:52 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-04-27 12:57:43 -0400
commit8745e9c45865a4409272d78db1e1af86a8b955e9 (patch)
treedab4ca47e369ab21d09faf902ec465a445442cdd /libavcodec/ac3enc.c
parent688b09fa597804ab4708271ce467a6ae025f0c17 (diff)
ac3enc: remove check for mismatching channels and channel_layout
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 77647d40e1..1f3c92aa3d 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -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;