changeset 21875:d81cf0be50f0

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
author diego
date Sat, 13 Jan 2007 06:00:34 +0000
parents 9338a0782bc3
children 82dd482fb3ec
files libmpdemux/demux_gif.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_gif.c	Sat Jan 13 04:32:14 2007 +0000
+++ b/libmpdemux/demux_gif.c	Sat Jan 13 06:00:34 2007 +0000
@@ -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