[FFmpeg-devel] [PATCH 1/6] avcodec/aacdec_template: Check samplerate

Moritz Barsnick barsnick at gmx.net
Thu Oct 10 13:06:43 EEST 2019


On Wed, Oct 09, 2019 at 12:14:49 +0200, Michael Niedermayer wrote:
> +    if (avctx->sample_rate > INT_MAX/2)
> +        return AVERROR_INVALIDDATA;

Who enforces the defined sample rates? The demuxer?

I'm trying to say: The maxmimum for AAC is 96000, why not use that?
(Will it ever change? Can it?)

Moritz


More information about the ffmpeg-devel mailing list