[FFmpeg-cvslog] r26275 - trunk/libavformat/wtv.c
pross
subversion
Sun Jan 9 03:21:30 CET 2011
Author: pross
Date: Sun Jan 9 03:21:30 2011
New Revision: 26275
Log:
wtv: stop processing chunks if length is smaller than chunk header
Modified:
trunk/libavformat/wtv.c
Modified: trunk/libavformat/wtv.c
==============================================================================
--- trunk/libavformat/wtv.c Sun Jan 9 03:13:58 2011 (r26274)
+++ trunk/libavformat/wtv.c Sun Jan 9 03:21:30 2011 (r26275)
@@ -363,6 +363,8 @@ static int parse_chunks(AVFormatContext
return AVERROR_EOF;
len = get_le32(pb);
+ if (len < 32)
+ break;
sid = get_le32(pb) & 0x7FFF;
url_fskip(pb, 8);
consumed = 32;
More information about the ffmpeg-cvslog
mailing list