aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-03 15:37:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-03 15:48:08 +0200
commitc9614bb22c98c513c010e1e14b12349a8cc74d8c (patch)
tree9760993f393eb1602ceaf81311d4cf62c4170cd9 /libavformat/wav.c
parente472f0ea5a025b61b7c208661a4bc31091a3c2c2 (diff)
downloadffmpeg-c9614bb22c98c513c010e1e14b12349a8cc74d8c.tar.gz
wav: update size check for ds64
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r--libavformat/wav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 34b957121e..5c4b7d3a6b 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -323,7 +323,7 @@ static int wav_read_header(AVFormatContext *s,
if (avio_rl32(pb) != MKTAG('d', 's', '6', '4'))
return -1;
size = avio_rl32(pb);
- if (size < 16)
+ if (size < 24)
return -1;
avio_rl64(pb); /* RIFF size */
data_size = avio_rl64(pb);