[FFmpeg-cvslog] r24477 - trunk/libavformat/mpegts.c

mstorsjo subversion
Sat Jul 24 10:43:52 CEST 2010


Author: mstorsjo
Date: Sat Jul 24 10:43:52 2010
New Revision: 24477

Log:
mpegts: Warn if unable to seek back

Modified:
   trunk/libavformat/mpegts.c

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	Sat Jul 24 06:23:26 2010	(r24476)
+++ trunk/libavformat/mpegts.c	Sat Jul 24 10:43:52 2010	(r24477)
@@ -1387,7 +1387,8 @@ static int mpegts_read_header(AVFormatCo
         /* 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);
 



More information about the ffmpeg-cvslog mailing list