提交 9fbc613f 编写于 作者: V Vittorio Giovara

wtv: check seek_by_sector return value

CC: libav-stable@libav.org
Bug-Id: CID 1198258
上级 d7f530b0
......@@ -972,7 +972,9 @@ static int read_header(AVFormatContext *s)
avio_skip(s->pb, 4);
root_sector = avio_rl32(s->pb);
seek_by_sector(s->pb, root_sector, 0);
ret = seek_by_sector(s->pb, root_sector, 0);
if (ret < 0)
return ret;
root_size = avio_read(s->pb, root, root_size);
if (root_size < 0)
return AVERROR_INVALIDDATA;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册