diff --git a/ffmpeg_vda.c b/ffmpeg_vda.c index b9f0975f55..d15648dd8e 100644 --- a/ffmpeg_vda.c +++ b/ffmpeg_vda.c @@ -73,7 +73,7 @@ static int vda_retrieve_data(AVCodecContext *s, AVFrame *frame) } av_image_copy(vda->tmp_frame->data, vda->tmp_frame->linesize, - data, linesize, vda->tmp_frame->format, + (const uint8_t **)data, linesize, vda->tmp_frame->format, frame->width, frame->height); ret = av_frame_copy_props(vda->tmp_frame, frame);