[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mpegts.c,1.35,1.36

Nico Sabbi CVS nicodvb
Mon Jan 2 21:27:17 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv30304

Modified Files:
	mpegts.c 
Log Message:
try with auto_guess if first detection fails

Index: mpegts.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mpegts.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- mpegts.c	2 Jan 2006 20:13:24 -0000	1.35
+++ mpegts.c	2 Jan 2006 20:27:15 -0000	1.36
@@ -1183,6 +1183,7 @@
     ts->stream = s;
     ts->auto_guess = 0;
 
+goto_auto_guess:
     if (!ts->mpeg2ts_raw) {
         /* normal demux */
 
@@ -1235,8 +1236,15 @@
             }
             /* if could not find service, exit */
 
-            if (ts->set_service_ret != 0)
-                return -1;
+            if (ts->set_service_ret != 0) {
+                if(ts->auto_guess)
+                  return -1;
+                else {
+                  //let's retry with auto_guess set
+                 ts->auto_guess = 1;
+                 goto goto_auto_guess;
+                }
+            }
 
 #ifdef DEBUG_SI
             printf("tuning done\n");





More information about the ffmpeg-cvslog mailing list