Commit bc55cec5 authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 432c1f35
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment