comparison png.c @ 3347:82277c821113 libavcodec

Add const to (mostly) char* and make some functions static, which aren't used outside their declaring source file and which have no corresponding prototype. patch by Stefan Huehner stefan^^@^^huehner^^.^^org
author diego
date Sun, 18 Jun 2006 11:33:14 +0000
parents 8d1b2cc2a75b
children 20545fbb6f7c
comparison
equal deleted inserted replaced
3346:052765f11f1c 3347:82277c821113
344 int j; 344 int j;
345 unsigned int v; 345 unsigned int v;
346 346
347 d = dst; 347 d = dst;
348 for(j = 0; j < width; j++) { 348 for(j = 0; j < width; j++) {
349 v = ((uint32_t *)src)[j]; 349 v = ((const uint32_t *)src)[j];
350 d[0] = v >> 16; 350 d[0] = v >> 16;
351 d[1] = v >> 8; 351 d[1] = v >> 8;
352 d[2] = v; 352 d[2] = v;
353 d[3] = v >> 24; 353 d[3] = v >> 24;
354 d += 4; 354 d += 4;