mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-30 04:02:04 +08: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