lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders
This commit is contained in:
parent
6b07830a77
commit
bb6941af2a
3 changed files with 5 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue