diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 715bd9dee24c381afd68a6eba00a8cead4f76034..6ce2490211cd925bedd21e5abdf0878235930696 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -105,7 +105,7 @@ int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_filter, c->picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, picref->video->w, picref->video->h); av_image_copy(c->picref->data, c->picref->linesize, - picref->data, picref->linesize, + (void*)picref->data, picref->linesize, picref->format, picref->video->w, picref->video->h); avfilter_copy_buffer_ref_props(c->picref, picref);