aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavformat/mpegts.c3
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);