Репозитории ALT
S: | 1.12.2-alt2.1 |
5.1: | 1.12.2-alt1 |
4.1: | 1.12.2-alt1 |
4.0: | 1.12.2-ipl12mdk |
3.0: | 1.12.2-ipl12mdk |
Группа :: Графика
Пакет: giftrans
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 10_local_colour_tables.diff
Скачать
Скачать
(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) {