[MPlayer-cvslog] r20808 - trunk/libmpdemux/demux_asf.c

gpoirier subversion at mplayerhq.hu
Thu Nov 9 00:54:21 CET 2006


Author: gpoirier
Date: Thu Nov  9 00:54:21 2006
New Revision: 20808

Modified:
   trunk/libmpdemux/demux_asf.c

Log:
Fix crash when attempting to seek in a streamed unseekable stream, like
mms://a632.v3306a.c3306.e.vm.akamaistream.net/7/632/3306/v1/multith.download.akamai.com/3306/2005/COMEDIE/1144-0186-001.wmv 
patch by alexandre % alex14fr A yahoo P fr %


Modified: trunk/libmpdemux/demux_asf.c
==============================================================================
--- trunk/libmpdemux/demux_asf.c	(original)
+++ trunk/libmpdemux/demux_asf.c	Thu Nov  9 00:54:21 2006
@@ -587,6 +587,8 @@
             sh_audio->format=sh_audio->wf->wFormatTag;
         }
     }
+    if(!demuxer->stream->seek)
+        demuxer->seekable=0;
 
     return demuxer;
 }



More information about the MPlayer-cvslog mailing list