diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-18 21:02:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-22 01:14:15 +0200 |
commit | 4668ff792a509ec1eb61f3ebc133d40db3b5a420 (patch) | |
tree | 8d5f77a24c8efcd943ee133a3875fbc9fd6aa0f7 | |
parent | 56f7b39456e65c31262c12ad0e03126ec29ce92d (diff) | |
download | ffmpeg-4668ff792a509ec1eb61f3ebc133d40db3b5a420.tar.gz |
avcodec/libspeexenc: 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/libspeexenc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/libspeexenc.c b/libavcodec/libspeexenc.c index 8d2c6347fa..2191e7dac7 100644 --- a/libavcodec/libspeexenc.c +++ b/libavcodec/libspeexenc.c @@ -152,13 +152,6 @@ static av_cold int encode_init(AVCodecContext *avctx) int header_size; int32_t complexity; - /* channels */ - if (channels < 1 || channels > 2) { - av_log(avctx, AV_LOG_ERROR, "Invalid channels (%d). Only stereo and " - "mono are supported\n", channels); - return AVERROR(EINVAL); - } - /* sample rate and encoding mode */ switch (avctx->sample_rate) { case 8000: mode = speex_lib_get_mode(SPEEX_MODEID_NB); break; |