summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-26 19:54:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-26 20:46:00 +0200
commit8a45e0c35496ff5fa75f05d610d255e3cde7ee48 (patch)
treed7b00f0fb5f7e5470d435c1b7e6c74e95df050b0
parent6d401effc410512a690090ae02a8a9cd022444ae (diff)
downloadffmpeg-8a45e0c35496ff5fa75f05d610d255e3cde7ee48.tar.gz
lswsutils: fix "ncompatible pointer type" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/lswsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/lswsutils.c b/libavfilter/lswsutils.c
index 0dffd8cb09..2c98f3a13e 100644
--- a/libavfilter/lswsutils.c
+++ b/libavfilter/lswsutils.c
@@ -42,7 +42,7 @@ int ff_scale_image(uint8_t *dst_data[4], int dst_linesize[4],
if ((ret = av_image_alloc(dst_data, dst_linesize, dst_w, dst_h, dst_pix_fmt, 16)) < 0)
goto end;
ret = 0;
- sws_scale(sws_ctx, src_data, src_linesize, 0, src_h, dst_data, dst_linesize);
+ sws_scale(sws_ctx, (const uint8_t * const*)src_data, src_linesize, 0, src_h, dst_data, dst_linesize);
end:
sws_freeContext(sws_ctx);