diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-18 13:33:43 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-21 21:12:45 +0200 |
commit | 1490ba6f4167f9d83a5f3a33ff44772572bce2cf (patch) | |
tree | 93362f36f510dd7bcdaa1e86277ce52ee1f19f55 | |
parent | d94a445e3d5a1d6a216e708b2ff104c1caaa673c (diff) | |
download | ffmpeg-1490ba6f4167f9d83a5f3a33ff44772572bce2cf.tar.gz |
avcodec/metasound: Remove always-false checks
The number of channels that is checked here is automatically
valid because it has just been set by us (based upon an entry
in codec_props).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/metasound.c | 5 |
1 files changed, 0 insertions, 5 deletions
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); |