Commit 6d9dfb12 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '1b4c4684'

* commit '1b4c4684':
  riff: Validate the wav header size before trying to parse it

Conflicts:
	libavformat/riffdec.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 3cd6b6aa 1b4c4684
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment