[FFmpeg-cvslog] libvpxenc: Fix " passing argument 3 of av_image_copy from incompatible pointer type" warning
Michael Niedermayer
git at videolan.org
Thu May 16 23:06:42 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 16 22:54:16 2013 +0200| [09b3bbe6057c9d03dff2467b1e6748a617afea15] | committer: Michael Niedermayer
libvpxenc: Fix "passing argument 3 of av_image_copy from incompatible pointer type" warning
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09b3bbe6057c9d03dff2467b1e6748a617afea15
---
libavcodec/libvpxdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index 5e80a9f..be97428 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;
}
More information about the ffmpeg-cvslog
mailing list