1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dpxenc: Fix "libavcodec/dpxenc.c:250:44: warning: passing argument 3 of av_image_copy_to_buffer from incompatible pointer type"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-10-24 12:06:22 +02:00
parent daabc59c64
commit e06ef9aa5f

View File

@ -245,7 +245,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
} }
} else { } else {
size = av_image_copy_to_buffer(buf + HEADER_SIZE, pkt->size - HEADER_SIZE, size = av_image_copy_to_buffer(buf + HEADER_SIZE, pkt->size - HEADER_SIZE,
frame->data, frame->linesize, (const uint8_t**)frame->data, frame->linesize,
avctx->pix_fmt, avctx->pix_fmt,
avctx->width, avctx->height, 1); avctx->width, avctx->height, 1);
} }