Merge commit '9fbc613f0d'
* commit '9fbc613f0d':
wtv: check seek_by_sector return value
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
c04f125bb4
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue