mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
56f7b39456
commit
4668ff792a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user