diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-30 01:52:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-30 01:55:36 +0100 |
commit | e74f2be1edde688cbf91614faa20bb89558be91d (patch) | |
tree | 0847d73760572c34be57e9981c60d2b1cccba6fd | |
parent | e4788e9cd9878a51b7780fa3e2d070288a2918b9 (diff) | |
download | ffmpeg-e74f2be1edde688cbf91614faa20bb89558be91d.tar.gz |
avformat/riffdec: ask for samples with wav header size < 14
Based on commit by Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/riffdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 09fee9d603..88e2229a77 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -84,6 +84,9 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size) { int id; + if (size < 14) + avpriv_request_sample(codec, "wav header size < 14"); + id = avio_rl16(pb); codec->codec_type = AVMEDIA_TYPE_AUDIO; codec->channels = avio_rl16(pb); |