avfilter/vf_maskedclamp: silence warning
authorPaul B Mahol <onemda@gmail.com>
Fri, 27 Apr 2018 09:35:18 +0000 (11:35 +0200)
committerPaul B Mahol <onemda@gmail.com>
Fri, 27 Apr 2018 09:36:34 +0000 (11:36 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_maskedclamp.c

index 576cf91..dc64426 100644 (file)
@@ -196,7 +196,7 @@ static int maskedclamp16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs
         int x, y;
 
         if (!((1 << p) & s->planes)) {
-            av_image_copy_plane(dst, dlinesize, bsrc, blinesize,
+            av_image_copy_plane((uint8_t *)dst, dlinesize, (const uint8_t *)bsrc, blinesize,
                                 s->linesize[p], slice_end - slice_start);
             continue;
         }