diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-18 21:00:51 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-22 01:14:15 +0200 |
commit | 56f7b39456e65c31262c12ad0e03126ec29ce92d (patch) | |
tree | 1c7103906d4ee5be61ea85ea018f41fb6fb61ab5 | |
parent | e6073665c43ec199b43689b5f305e7fed8f84379 (diff) | |
download | ffmpeg-56f7b39456e65c31262c12ad0e03126ec29ce92d.tar.gz |
avcodec/libshine: Remove dead channel count check
This encoder has AVCodec.ch_layouts set, so that this is checked
generically.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/libshine.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/libshine.c b/libavcodec/libshine.c index 621c57816a..e266229f03 100644 --- a/libavcodec/libshine.c +++ b/libavcodec/libshine.c @@ -44,11 +44,6 @@ static av_cold int libshine_encode_init(AVCodecContext *avctx) { SHINEContext *s = avctx->priv_data; - if (avctx->ch_layout.nb_channels <= 0 || avctx->ch_layout.nb_channels > 2){ - av_log(avctx, AV_LOG_ERROR, "only mono or stereo is supported\n"); - return AVERROR(EINVAL); - } - shine_set_config_mpeg_defaults(&s->config.mpeg); if (avctx->bit_rate) s->config.mpeg.bitr = avctx->bit_rate / 1000; |