summaryrefslogtreecommitdiff
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-14 15:09:30 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-14 15:09:30 +0100
commita8e93ce4cb74dc26153bdccfbe8a487674e583a6 (patch)
tree328683ad71f17dcced1115908b1a58f84e18654f /libavformat/wav.c
parent9c18a056b125d18fa676c3fe932fe0d0f396e5a1 (diff)
Do not reject LIST tags in wav with size 4.
Fixes ticket #745.
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 87d97b4c0c..9d4b0708b8 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -507,7 +507,7 @@ static int wav_read_header(AVFormatContext *s,
goto break_loop;
case MKTAG('L', 'I', 'S', 'T'):
list_type = avio_rl32(pb);
- if (size <= 4) {
+ if (size < 4) {
av_log(s, AV_LOG_ERROR, "too short LIST");
return AVERROR_INVALIDDATA;
}