[Mplayer-cvslog] CVS: main/libmpdemux demux_mpg.c,1.49,1.50

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Aug 7 16:20:31 CEST 2004


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	demux_mpg.c 
Log Message:
fix for crash when seeking with -novideo option


Index: demux_mpg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mpg.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- demux_mpg.c	8 Dec 2003 21:34:05 -0000	1.49
+++ demux_mpg.c	7 Aug 2004 14:20:28 -0000	1.50
@@ -366,7 +366,7 @@
 	newpos+=(demuxer->movi_end-demuxer->movi_start)*rel_seek_secs;
     } else {
 	// time seek (secs)
-        if(!sh_video->i_bps) // unspecified or VBR
+        if(!sh_video || !sh_video->i_bps) // unspecified or VBR
           newpos+=2324*75*rel_seek_secs; // 174.3 kbyte/sec
         else
           newpos+=sh_video->i_bps*rel_seek_secs;




More information about the MPlayer-cvslog mailing list