summaryrefslogtreecommitdiff
path: root/libavformat/png.c
diff options
context:
space:
mode:
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;