[FFmpeg-cvslog] wav: update size check for ds64
Michael Niedermayer
git at videolan.org
Fri Jun 3 15:49:02 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 3 15:37:44 2011 +0200| [c9614bb22c98c513c010e1e14b12349a8cc74d8c] | committer: Michael Niedermayer
wav: update size check for ds64
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c9614bb22c98c513c010e1e14b12349a8cc74d8c
---
libavformat/wav.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 34b9571..5c4b7d3 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);
More information about the ffmpeg-cvslog
mailing list