]> git.pld-linux.org Git - packages/xv.git/blame - xv-gifpatch
- added jasper patch (don't use internal functions or hacks)
[packages/xv.git] / xv-gifpatch
CommitLineData
c1f0ee65
JR
1This patch fixes a bug in XVs gif-reading code. The bug could conceivably
2hit when viewing a number of interlaced GIFs. Thanks to Mark Hanson
3<mbh@netcom.com> for spotting this one.
4
5--jhb, 10/29/98
6
7
8*** xvgif.c.old Tue Jan 10 14:54:41 1995
9--- xvgif.c Thu Oct 29 17:43:30 1998
10***************
11*** 113,119 ****
12 int aspect, gotimage;
13
14 /* initialize variables */
15! BitOffset = XC = YC = Pass = OutCount = gotimage = 0;
16 RawGIF = Raster = pic8 = NULL;
17 gif89 = 0;
18
19--- 113,120 ----
20 int aspect, gotimage;
21
22 /* initialize variables */
23! BitOffset = XC = YC = OutCount = gotimage = 0;
24! Pass = -1;
25 RawGIF = Raster = pic8 = NULL;
26 gif89 = 0;
27
28***************
29*** 692,698 ****
30 {
31 static byte *ptr = NULL;
32 static int oldYC = -1;
33!
34 if (oldYC != YC) { ptr = pic8 + YC * Width; oldYC = YC; }
35
36 if (YC<Height)
37--- 693,704 ----
38 {
39 static byte *ptr = NULL;
40 static int oldYC = -1;
41!
42! if (Pass == -1) { /* first time through - init stuff */
43! oldYC = -1;
44! Pass = 0;
45! }
46!
47 if (oldYC != YC) { ptr = pic8 + YC * Width; oldYC = YC; }
48
49 if (YC<Height)
This page took 0.633943 seconds and 4 git commands to generate.