[SCM] libav/experimental: wtv: stop processing chunks if length is smaller than chunk header
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:21:37 UTC 2013
The following commit has been merged in the experimental branch:
commit bf2e54174eb24e3271ff22ca6cec2e55a6899350
Author: Peter Ross <pross at xvid.org>
Date: Sun Jan 9 02:21:30 2011 +0000
wtv: stop processing chunks if length is smaller than chunk header
Originally committed as revision 26275 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index a178eb2..0e7db98 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -363,6 +363,8 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p
return AVERROR_EOF;
len = get_le32(pb);
+ if (len < 32)
+ break;
sid = get_le32(pb) & 0x7FFF;
url_fskip(pb, 8);
consumed = 32;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list