mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '9fbc613f0df1628e7e78bca791fa8833846f8210'
* commit '9fbc613f0df1628e7e78bca791fa8833846f8210': wtv: check seek_by_sector return value Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
c04f125bb4
|
@ -974,7 +974,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;
|
||||
|
|
Loading…
Reference in New Issue