You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
wtv: check seek_by_sector return value
CC: libav-stable@libav.org Bug-Id: CID 1198258
This commit is contained in:
@@ -972,7 +972,9 @@ static int read_header(AVFormatContext *s)
|
|||||||
avio_skip(s->pb, 4);
|
avio_skip(s->pb, 4);
|
||||||
root_sector = avio_rl32(s->pb);
|
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);
|
root_size = avio_read(s->pb, root, root_size);
|
||||||
if (root_size < 0)
|
if (root_size < 0)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
Reference in New Issue
Block a user