[FFmpeg-cvslog] wav: do not fail on empty INFO tags
Anton Khirnov
git at videolan.org
Wed Oct 17 15:52:39 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Oct 16 10:33:52 2012 +0200| [79922d7237aba2b8c6abbd2e06a0c08e4f498ad4] | committer: Anton Khirnov
wav: do not fail on empty INFO tags
Fixes Bug 379
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79922d7237aba2b8c6abbd2e06a0c08e4f498ad4
---
libavformat/wavdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index bc52887..9e48531 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;
}
More information about the ffmpeg-cvslog
mailing list