projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c226fc5
)
mpegts: Warn if unable to seek back
author
Martin Storsjö
<martin@martin.st>
Sat, 24 Jul 2010 08:43:52 +0000
(08:43 +0000)
committer
Martin Storsjö
<martin@martin.st>
Sat, 24 Jul 2010 08:43:52 +0000
(08:43 +0000)
Originally committed as revision 24477 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpegts.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegts.c
b/libavformat/mpegts.c
index b1600901e24ede134b7112a3f318bec5867f9f66..27d13bcd9ec6908683d6ad86363dd01ca4d3731c 100644
(file)
--- 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);