mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/mpegaudioenc_template: Remove dead channel count check
The encoders using this have 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
4668ff792a
commit
17366d6128
@ -82,10 +82,6 @@ static av_cold int MPA_encode_init(AVCodecContext *avctx)
|
||||
int i, v, table;
|
||||
float a;
|
||||
|
||||
if (channels <= 0 || channels > 2){
|
||||
av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not allowed in mp2\n", channels);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
bitrate = bitrate / 1000;
|
||||
s->nb_channels = channels;
|
||||
avctx->frame_size = MPA_FRAME_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user