comparison gif.c @ 1123:6992dd78ff68 libavformat

Add (mostly) const to variable and parameter declaration, where a char* was used and 'const char*' should be, plus make some function declarations static if they aren't used outside their declaring source file. patch by Stefan Huehner stefan%%at%%huehner%%dot%%org
author diego
date Sat, 17 Jun 2006 15:53:23 +0000
parents edbe5c3717f9
children e89500dd9064
comparison
equal deleted inserted replaced
1122:f8ee5a4b576e 1123:6992dd78ff68
185 put_byte(pb, 0x1f); /* background color index */ 185 put_byte(pb, 0x1f); /* background color index */
186 put_byte(pb, 0); /* aspect ratio */ 186 put_byte(pb, 0); /* aspect ratio */
187 187
188 /* the global palette */ 188 /* the global palette */
189 if (!palette) { 189 if (!palette) {
190 put_buffer(pb, (unsigned char *)gif_clut, 216*3); 190 put_buffer(pb, (const unsigned char *)gif_clut, 216*3);
191 for(i=0;i<((256-216)*3);i++) 191 for(i=0;i<((256-216)*3);i++)
192 put_byte(pb, 0); 192 put_byte(pb, 0);
193 } else { 193 } else {
194 for(i=0;i<256;i++) { 194 for(i=0;i<256;i++) {
195 v = palette[i]; 195 v = palette[i];