From 7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7 Mon Sep 17 00:00:00 2001 From: Stefan Huehner Date: Sun, 18 Jun 2006 11:33:14 +0000 Subject: 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 Originally committed as revision 5497 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/png.c') diff --git a/libavcodec/png.c b/libavcodec/png.c index c96638c2d8..efe4cdf4ff 100644 --- a/libavcodec/png.c +++ b/libavcodec/png.c @@ -346,7 +346,7 @@ static void convert_from_rgba32(uint8_t *dst, const uint8_t *src, int width) d = dst; for(j = 0; j < width; j++) { - v = ((uint32_t *)src)[j]; + v = ((const uint32_t *)src)[j]; d[0] = v >> 16; d[1] = v >> 8; d[2] = v; -- cgit v1.2.3