[FFmpeg-cvslog] Do not reject LIST tags in wav with size 4.
Carl Eugen Hoyos
git at videolan.org
Wed Dec 14 15:19:04 CET 2011
ffmpeg | branch: release/0.9 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Dec 14 15:09:30 2011 +0100| [238c7ffd7dc23b33596c0a49dcb7d8d4fc3f2c46] | committer: Carl Eugen Hoyos
Do not reject LIST tags in wav with size 4.
Fixes ticket #745.
(cherry picked from commit a8e93ce4cb74dc26153bdccfbe8a487674e583a6)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=238c7ffd7dc23b33596c0a49dcb7d8d4fc3f2c46
---
libavformat/wav.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 87d97b4..9d4b070 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;
}
More information about the ffmpeg-cvslog
mailing list