[MPlayer-cvslog] r21893 - trunk/libmpdemux/demux_gif.c

diego subversion at mplayerhq.hu
Sat Jan 13 07:00:34 CET 2007


Author: diego
Date: Sat Jan 13 07:00:34 2007
New Revision: 21893

Modified:
   trunk/libmpdemux/demux_gif.c

Log:
Frametime was being read from the wrong offset, compare
http://www.onicos.com/staff/iz/formats/gif.html#gceb
patch by John Koleszar, jkoleszar on2 com


Modified: trunk/libmpdemux/demux_gif.c
==============================================================================
--- trunk/libmpdemux/demux_gif.c	(original)
+++ trunk/libmpdemux/demux_gif.c	Sat Jan 13 07:00:34 2007
@@ -68,7 +68,7 @@
       if (code == 0xF9) {
         int frametime = 0;
         if (p[0] == 4) // is the length correct?
-          frametime = (p[1] << 8) | p[2]; // set the time, centiseconds
+          frametime = (p[3] << 8) | p[2]; // set the time, centiseconds
         current_pts += frametime;
       } else if ((code == 0xFE) && (verbose)) { // comment extension
 	// print iff verbose



More information about the MPlayer-cvslog mailing list