repositories
/
deb_ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git]
/
ffmpeg
/
libavformat
/
riffdec.c
diff --git
a/ffmpeg/libavformat/riffdec.c
b/ffmpeg/libavformat/riffdec.c
index 09fee9d603ae28a829c20ed914f4e65c52e03dab..88e2229a778418af70d71c8f8d0e4d9d7a21ba0c 100644
(file)
--- a/
ffmpeg/libavformat/riffdec.c
+++ b/
ffmpeg/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);