summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorjamal <jamrial@gmail.com>2012-07-27 05:23:15 -0300
committerMichael Niedermayer <michaelni@gmx.at>2012-07-27 22:10:10 +0200
commit94c3e11a6f62bf13a7e6f1b9287c6112bf6ee445 (patch)
tree6cc39a736c2f55a643031260a019e3fb7f05f17a /libavutil
parent4f2549e3d0e601a3c61ff2872bf784263f95d723 (diff)
downloadffmpeg-94c3e11a6f62bf13a7e6f1b9287c6112bf6ee445.tar.gz
imgutils: Fix warnings about incompatible pointer type and discarded qualifiers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/imgutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 8ef92a50e3..67368f0679 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -296,7 +296,7 @@ int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],
if ((ret = av_image_fill_pointers(dst_data, pix_fmt, width, NULL, dst_linesize)) < 0)
return ret;
- return av_image_fill_pointers(dst_data, pix_fmt, height, src, dst_linesize);
+ return av_image_fill_pointers(dst_data, pix_fmt, height, (uint8_t *)src, dst_linesize);
}
int av_image_get_buffer_size(enum PixelFormat pix_fmt, int width, int height, int align)
@@ -340,7 +340,7 @@ int av_image_copy_to_buffer(uint8_t *dst, int dst_size,
}
if (desc->flags & PIX_FMT_PAL) {
- uint32_t *d32 = (uint8_t *)(((size_t)dst + 3) & ~3);
+ uint32_t *d32 = (uint32_t *)(((size_t)dst + 3) & ~3);
for (i = 0; i<256; i++)
AV_WL32(d32 + i, AV_RN32(src_data[1] + 4*i));
}