Commit bf2e5417 authored by Peter Ross's avatar Peter Ross

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

Originally committed as revision 26275 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9372f31e
...@@ -363,6 +363,8 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p ...@@ -363,6 +363,8 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p
return AVERROR_EOF; return AVERROR_EOF;
len = get_le32(pb); len = get_le32(pb);
if (len < 32)
break;
sid = get_le32(pb) & 0x7FFF; sid = get_le32(pb) & 0x7FFF;
url_fskip(pb, 8); url_fskip(pb, 8);
consumed = 32; consumed = 32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment