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@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-11-04 04:41:22 +01:00
parent 432c1f35f7
commit bc55cec57e
1 changed files with 1 additions and 1 deletions

View File

@ -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;