1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 23:36:58 +00:00

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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21893 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-01-13 06:00:34 +00:00
parent addb047274
commit 4b8743d056

View File

@ -68,7 +68,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
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