Module: libav
Branch: master
Commit: 8745e9c45865a4409272d78db1e1af86a8b955e9

Author:    Justin Ruggles <justin.rugg...@gmail.com>
Committer: Justin Ruggles <justin.rugg...@gmail.com>
Date:      Tue Apr 19 19:06:52 2011 -0400

ac3enc: remove check for mismatching channels and channel_layout

---

 libavcodec/ac3enc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 77647d4..1f3c92a 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;

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to