mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
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:
parent
9372f31e03
commit
bf2e54174e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user