libvpxenc: Fix "passing argument 3 of av_image_copy from incompatible pointer type...
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 16 May 2013 20:54:16 +0000 (22:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 16 May 2013 20:54:16 +0000 (22:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libvpxdec.c

index 5e80a9f..be97428 100644 (file)
@@ -96,7 +96,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);
         *got_frame           = 1;
     }