]> git.sesse.net Git - ffmpeg/commitdiff
libvpx: Cast a pointer to const to squelch a warning
authorDiego Biurrun <diego@biurrun.de>
Wed, 24 Aug 2016 15:00:11 +0000 (17:00 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 26 Aug 2016 11:25:59 +0000 (13:25 +0200)
libavcodec/libvpxdec.c:100:57: warning: passing argument 3 of 'av_image_copy' from incompatible pointer type
         av_image_copy(picture->data, picture->linesize, img->planes,
libavutil/imgutils.h:116:6: note: expected 'const uint8_t **' but argument is of type 'unsigned char **'
 void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],

libavcodec/libvpxdec.c

index 93a720f56690a00707279acbed8decad3a069645..6d3b29fefaf5e7c7586557afbb7f149e82c30ce5 100644 (file)
@@ -97,7 +97,7 @@ static int vp8_decode(AVCodecContext *avctx,
         }
         if ((ret = ff_get_buffer(avctx, picture, 0)) < 0)
             return ret;
-        av_image_copy(picture->data, picture->linesize, img->planes,
+        av_image_copy(picture->data, picture->linesize, (const uint8_t **) img->planes,
                       img->stride, avctx->pix_fmt, img->d_w, img->d_h);
 #if VPX_IMAGE_ABI_VERSION >= 4
         switch (img->range) {