# HG changeset patch # User diego # Date 1168668034 0 # Node ID d81cf0be50f038462fa78c5e3e5d7990e68e860c # Parent 9338a0782bc3e82a270e4fc2f6cffc48fd66a288 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 diff -r 9338a0782bc3 -r d81cf0be50f0 libmpdemux/demux_gif.c --- 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