| 1 |
From: Morten Kjeldgaard <[email protected]> |
| 2 |
Subject: modification to source code |
| 3 |
|
| 4 |
|
| 5 |
--- a/src/gifSave.cpp |
| 6 |
+++ b/src/gifSave.cpp |
| 7 |
@@ -55,7 +55,7 @@ |
| 8 |
Frame r(npix),g(npix),b(npix); |
| 9 |
|
| 10 |
// de-interlaeve |
| 11 |
|
| 12 |
+ for (unsigned int i=0, j=0; i<npix; i++){ |
| 13 |
r[i]=data[j++]; |
| 14 |
g[i]=data[j++]; |
| 15 |
b[i]=data[j++]; |
| 16 |
@@ -71,7 +71,7 @@ |
| 17 |
|
| 18 |
} else { |
| 19 |
// maunal assignment of color indices |
| 20 |
|
| 21 |
+ for (unsigned int i = 0, j=0; i < npix; i++) { |
| 22 |
int minIndex = 0, |
| 23 |
minDist = 3 * 256 * 256; |
| 24 |
GifColorType *c = outputPalette->Colors; |
| 25 |
@@ -154,7 +154,7 @@ |
| 26 |
|
| 27 |
if (!AddLoop(GifFile)) return false; |
| 28 |
|
| 29 |
|
| 30 |
+ for (int ni=0; ni < (int)frames.size(); ni++) { |
| 31 |
|
| 32 |
static unsigned char |
| 33 |
ExtStr[4] = { 0x04, 0x00, 0x00, 0xff }; |