wtv: stop processing chunks if length is smaller than chunk header

Originally committed as revision 26275 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Peter Ross 2011-01-09 02:21:30 +00:00
parent 9372f31e03
commit bf2e54174e

View File

@ -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;