[MPlayer-cvslog] CVS: main/libmpdemux demux_mpg.c,1.79,1.80

Nico Sabbi CVS syncmail at mplayerhq.hu
Wed May 3 19:55:05 CEST 2006


CVS change done by Nico Sabbi CVS

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

Modified Files:
	demux_mpg.c 
Log Message:
in read_mpeg_timestamp() cast c to uint64_t or before << 30 will set a 1 in the sign bit with bad consequences

Index: demux_mpg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mpg.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- demux_mpg.c	11 Apr 2006 20:05:24 -0000	1.79
+++ demux_mpg.c	3 May 2006 17:55:02 -0000	1.80
@@ -161,7 +161,7 @@
     ++mpeg_pts_error;
     return 0; // invalid pts
   }
-  pts=(((c>>1)&7)<<30)|((d>>1)<<15)|(e>>1);
+  pts=(((uint64_t)((c>>1)&7))<<30)|((d>>1)<<15)|(e>>1);
   mp_dbg(MSGT_DEMUX,MSGL_DBG3,"{%d}",pts);
   return pts;
 }




More information about the MPlayer-cvslog mailing list