Commit c04f125b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '9fbc613f'

* commit '9fbc613f':
  wtv: check seek_by_sector return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 36552345 9fbc613f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment