summaryrefslogtreecommitdiff
path: root/libavformat/wavdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-10-16 10:33:52 +0200
committerAnton Khirnov <anton@khirnov.net>2012-10-16 18:52:14 +0200
commit79922d7237aba2b8c6abbd2e06a0c08e4f498ad4 (patch)
tree2134835549fa5542e706c4ca5441065020553c8d /libavformat/wavdec.c
parent31c54711cc3f1484af101d629bbb805820d37ad1 (diff)
wav: do not fail on empty INFO tags
Fixes Bug 379 CC: libav-stable@libav.org
Diffstat (limited to 'libavformat/wavdec.c')
-rw-r--r--libavformat/wavdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index bc5288734e..9e48531fc8 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -288,7 +288,7 @@ static int wav_read_header(AVFormatContext *s)
break;
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;
}