mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
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>
This commit is contained in:
parent
e6073665c4
commit
56f7b39456
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user