mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders
This commit is contained in:
@@ -758,8 +758,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
|
||||
if (av_codec_is_decoder(codec))
|
||||
av_freep(&avctx->subtitle_header);
|
||||
|
||||
#define SANE_NB_CHANNELS 128U
|
||||
if (avctx->channels > SANE_NB_CHANNELS) {
|
||||
if (avctx->channels > FF_SANE_NB_CHANNELS) {
|
||||
ret = AVERROR(EINVAL);
|
||||
goto free_and_end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user