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

Originally committed as revision 26275 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Peter Ross 14 years ago
parent 9372f31e03
commit bf2e54174e
  1. 2
      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;

Loading…
Cancel
Save