From 09b3bbe6057c9d03dff2467b1e6748a617afea15 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 16 May 2013 22:54:16 +0200 Subject: [PATCH] libvpxenc: Fix "passing argument 3 of av_image_copy from incompatible pointer type" warning Signed-off-by: Michael Niedermayer --- libavcodec/libvpxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c index 5e80a9f63e..be9742812c 100644 --- a/libavcodec/libvpxdec.c +++ b/libavcodec/libvpxdec.c @@ -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; }