ALT Linux repositórios
Group :: Gráficos
RPM: giftrans
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 10_local_colour_tables.diff
Download
Download
(Re. Debian Bug #20715)
This bug is caused by the local color table in the image not being
parsed. The patch below fixes giftrans for images with local color
tables.
John Lightsey
john@nixnuts.net
--- giftrans-1.12.2.orig/giftrans.c
+++ giftrans-1.12.2/giftrans.c
@@ -547,8 +547,8 @@
if (output)
(void)fwrite((void *)buffer,10,1,dest);
/* Local Color Table */
- if (buffer[8]&0x80) {
- size=2<<(buffer[8]&0x7);
+ if (buffer[9]&0x80) {
+ size=2<<(buffer[9]&0x7);
pos=ftell(src);
(void)fread((void *)buffer,size,3,src);
if (verbose) {