diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index a661b9cb46..321f41133e 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -259,6 +259,9 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) (pad->y >> vsub) * outpicref->linesize[plane]; } + outpicref->video->w = pad->w; + outpicref->video->h = pad->h; + avfilter_start_frame(inlink->dst->outputs[0], outpicref); }