[Ffmpeg-cvslog] r5475 - trunk/libavformat/avidec.c

michael subversion
Wed Jun 14 02:32:11 CEST 2006


Author: michael
Date: Wed Jun 14 02:32:10 2006
New Revision: 5475

Modified:
   trunk/libavformat/avidec.c

Log:
dont load the index if we cant seek back


Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Wed Jun 14 02:32:10 2006
@@ -429,8 +429,10 @@
             break;
         case MKTAG('i', 'n', 'd', 'x'):
             i= url_ftell(pb);
-            read_braindead_odml_indx(s, 0);
-            avi->index_loaded=1;
+            if(!url_is_streamed(pb)){
+                read_braindead_odml_indx(s, 0);
+                avi->index_loaded=1;
+            }
             url_fseek(pb, i+size, SEEK_SET);
             break;
         default:
@@ -451,7 +453,7 @@
         return -1;
     }
 
-    if(!avi->index_loaded)
+    if(!avi->index_loaded && !url_is_streamed(pb))
         avi_load_index(s);
     avi->index_loaded = 1;
     avi->non_interleaved |= guess_ni_flag(s);




More information about the ffmpeg-cvslog mailing list