summaryrefslogtreecommitdiff
path: root/libavformat/png.c
diff options
context:
space:
mode:
authorStefan Huehner <stefan@huehner.org>2006-06-17 15:53:23 +0000
committerDiego Biurrun <diego@biurrun.de>2006-06-17 15:53:23 +0000
commita97c1e93aa3c1fbb7cde0699b36ea9be466c6a52 (patch)
treefa39edd0203e307b8d730eec10e717b918f06c1f /libavformat/png.c
parentc8e9f801762f325e155dacd424226fd0d382c591 (diff)
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 Originally committed as revision 5492 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/png.c')
-rw-r--r--libavformat/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/png.c b/libavformat/png.c
index e775cc520f..4a41b21cc4 100644
--- a/libavformat/png.c
+++ b/libavformat/png.c
@@ -326,7 +326,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;