mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Merge commit '1b4c468477f3b8d372da8ef4e5405539ad9c1501'
* commit '1b4c468477f3b8d372da8ef4e5405539ad9c1501': riff: Validate the wav header size before trying to parse it Conflicts: libavformat/riffdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
6d9dfb1267
@ -87,8 +87,10 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size, int big_
|
||||
{
|
||||
int id;
|
||||
|
||||
if (size < 14)
|
||||
if (size < 14) {
|
||||
avpriv_request_sample(codec, "wav header size < 14");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
if (!big_endian) {
|
||||
|
Loading…
Reference in New Issue
Block a user