[FFmpeg-cvslog] lswsutils: fix "ncompatible pointer type" warning

Michael Niedermayer git at videolan.org
Sat May 26 20:49:03 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 26 19:54:27 2012 +0200| [8a45e0c35496ff5fa75f05d610d255e3cde7ee48] | committer: Michael Niedermayer

lswsutils: fix "ncompatible pointer type" warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a45e0c35496ff5fa75f05d610d255e3cde7ee48
---

 libavfilter/lswsutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/lswsutils.c b/libavfilter/lswsutils.c
index 0dffd8c..2c98f3a 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);



More information about the ffmpeg-cvslog mailing list