diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 5baf99be88..902060f8c8 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -153,6 +153,8 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); avfilter_copy_buffer_ref_props(outpicref, picref); + outpicref->video->w = outlink->w; + outpicref->video->h = outlink->h; outlink->out_buf = outpicref;