|
|
@ -2026,6 +2026,11 @@ FF_DISABLE_DEPRECATION_WARNINGS |
|
|
|
FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (avctx->codec_type == AVMEDIA_TYPE_AUDIO && avctx->channels == 0 && |
|
|
|
|
|
|
|
!(avctx->codec->capabilities & AV_CODEC_CAP_CHANNEL_CONF)) { |
|
|
|
|
|
|
|
av_log(avctx, AV_LOG_ERROR, "Decoder requires channel count but channels not set\n"); |
|
|
|
|
|
|
|
return AVERROR(EINVAL); |
|
|
|
|
|
|
|
} |
|
|
|
if (avctx->codec->max_lowres < avctx->lowres || avctx->lowres < 0) { |
|
|
|
if (avctx->codec->max_lowres < avctx->lowres || avctx->lowres < 0) { |
|
|
|
av_log(avctx, AV_LOG_WARNING, "The maximum value for lowres supported by the decoder is %d\n", |
|
|
|
av_log(avctx, AV_LOG_WARNING, "The maximum value for lowres supported by the decoder is %d\n", |
|
|
|
avctx->codec->max_lowres); |
|
|
|
avctx->codec->max_lowres); |
|
|
|