diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-04 04:41:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-04 04:41:22 +0100 |
commit | bc55cec57e5d804f8cc9596a6f3878c1bda0ae56 (patch) | |
tree | 28e0c6f394593c92d4f08f66ea1ead968d109165 /libavcodec/rawenc.c | |
parent | 432c1f35f7b684e28d15f2712c03f7697193b351 (diff) | |
download | ffmpeg-bc55cec57e5d804f8cc9596a6f3878c1bda0ae56.tar.gz |
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>
Diffstat (limited to 'libavcodec/rawenc.c')
-rw-r--r-- | libavcodec/rawenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index b8eabd809a..d83705645c 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; |