diff --git a/libavcodec/metasound.c b/libavcodec/metasound.c index d5bf2d22ad..67c4d94f62 100644 --- a/libavcodec/metasound.c +++ b/libavcodec/metasound.c @@ -302,11 +302,6 @@ static av_cold int metasound_decode_init(AVCodecContext *avctx) props++; } - if (channels <= 0 || channels > TWINVQ_CHANNELS_MAX) { - av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %i\n", - channels); - return AVERROR_INVALIDDATA; - } av_channel_layout_uninit(&avctx->ch_layout); av_channel_layout_default(&avctx->ch_layout, channels);