Browse Source

wtv: check seek_by_sector return value

CC: libav-stable@libav.org
Bug-Id: CID 1198258
tags/n2.5
Vittorio Giovara 11 years ago
parent
commit
9fbc613f0d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/wtv.c

+ 3
- 1
libavformat/wtv.c View File

@@ -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;


Loading…
Cancel
Save