[FFmpeg-cvslog] avcodec/rawenc: Cast argument for av_image_copy_to_buffer() to const
Michael Niedermayer
git at videolan.org
Wed Nov 4 05:12:28 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Nov 4 04:41:22 2015 +0100| [bc55cec57e5d804f8cc9596a6f3878c1bda0ae56] | committer: Michael Niedermayer
avcodec/rawenc: Cast argument for av_image_copy_to_buffer() to const
Fixes: libavcodec/rawenc.c:64:40: warning: passing argument 3 of av_image_copy_to_buffer from incompatible pointer type [enabled by default]
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc55cec57e5d804f8cc9596a6f3878c1bda0ae56
---
libavcodec/rawenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index b8eabd8..d837056 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -59,7 +59,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
if ((ret = ff_alloc_packet2(avctx, pkt, ret, ret)) < 0)
return ret;
if ((ret = av_image_copy_to_buffer(pkt->data, pkt->size,
- frame->data, frame->linesize,
+ (const uint8_t **)frame->data, frame->linesize,
frame->format,
frame->width, frame->height, 1)) < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list