mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Merge commit 'd07aa3f02b73ab1371c13ac7898338380ca0932b'
* commit 'd07aa3f02b73ab1371c13ac7898338380ca0932b': riffdec: Add sanity checks for the sample rate Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
5badcfe220
@ -130,6 +130,11 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
|
||||
if (size > 0)
|
||||
avio_skip(pb, size);
|
||||
}
|
||||
if (codec->sample_rate <= 0) {
|
||||
av_log(NULL, AV_LOG_ERROR,
|
||||
"Invalid sample rate: %d\n", codec->sample_rate);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
if (codec->codec_id == AV_CODEC_ID_AAC_LATM) {
|
||||
/* Channels and sample_rate values are those prior to applying SBR
|
||||
* and/or PS. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user