[FFmpeg-cvslog] wtv: check seek_by_sector return value
Vittorio Giovara
git at videolan.org
Mon Oct 20 21:52:04 CEST 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Sat Oct 18 01:12:19 2014 +0100| [9fbc613f0df1628e7e78bca791fa8833846f8210] | committer: Vittorio Giovara
wtv: check seek_by_sector return value
CC: libav-stable at libav.org
Bug-Id: CID 1198258
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9fbc613f0df1628e7e78bca791fa8833846f8210
---
libavformat/wtv.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index c85f374..a3f8c27 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list