aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libcodec2.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-18 20:59:36 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-22 01:07:49 +0200
commite6073665c43ec199b43689b5f305e7fed8f84379 (patch)
tree77a1decc9b400027621501c57e1f62bb801388f0 /libavcodec/libcodec2.c
parent5c18934c6d8bb56e412efc5636fbc22b6c57b16d (diff)
downloadffmpeg-e6073665c43ec199b43689b5f305e7fed8f84379.tar.gz
avcodec/libcodec2: Remove dead channel count check
This encoder has AVCodec.ch_layouts set, so that this is checked generically. Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libcodec2.c')
-rw-r--r--libavcodec/libcodec2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c
index be9677ddeb..581ef04ce2 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -105,7 +105,6 @@ static av_cold int libcodec2_init_encoder(AVCodecContext *avctx)
//will need to be smarter once we get wideband support
if (avctx->sample_rate != 8000 ||
- avctx->ch_layout.nb_channels != 1 ||
avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
av_log(avctx, AV_LOG_ERROR, "only 8 kHz 16-bit mono allowed\n");
return AVERROR(EINVAL);