[Mplayer-cvslog] CVS: main/libmpdemux demux_nsv.c,1.8,1.9

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Sep 9 21:28:57 CEST 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv23240/libmpdemux

Modified Files:
	demux_nsv.c 
Log Message:
avoid always skipping first junk with a "sync lost" message


Index: demux_nsv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_nsv.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- demux_nsv.c	25 Jul 2004 15:38:08 -0000	1.8
+++ demux_nsv.c	9 Sep 2004 19:28:54 -0000	1.9
@@ -277,8 +277,9 @@
                     }
                 }
 
-
-                stream_seek(demuxer->stream,stream_tell(demuxer->stream)-10);
+                // data starts 10 bytes before current pos but later
+                // we seek 17 backwards
+                stream_skip(demuxer->stream,7);
             } 
             
         switch(priv->fps){
@@ -304,7 +305,8 @@
        }
     }   
 
-    
+    // seek to start of NSV header
+    stream_seek(demuxer->stream,stream_tell(demuxer->stream)-17);
     
     return demuxer;
 }




More information about the MPlayer-cvslog mailing list