diff options
author | Martin Storsjö <martin@martin.st> | 2010-07-24 08:43:52 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-07-24 08:43:52 +0000 |
commit | 8dd25c52cbf57d4a28885abcc950c27a24606036 (patch) | |
tree | 7c105710d8bdc986e631b09ae48c2a0186a8bb60 /libavformat/mpegts.c | |
parent | c226fc5bfb37659c7c2ed75fd5fa9988bf175579 (diff) | |
download | ffmpeg-8dd25c52cbf57d4a28885abcc950c27a24606036.tar.gz |
mpegts: Warn if unable to seek back
Originally committed as revision 24477 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index b1600901e2..27d13bcd9e 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1387,7 +1387,8 @@ static int mpegts_read_header(AVFormatContext *s, /* normal demux */ /* first do a scaning to get all the services */ - url_fseek(pb, pos, SEEK_SET); + if (url_fseek(pb, pos, SEEK_SET) < 0) + av_log(s, AV_LOG_ERROR, "Unable to seek back to the start\n"); mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1); |