In pad filter, update new ref w/h in start_frame, fix chaining
[ffmpeg.git] / libavfilter / vf_pad.c
index a661b9c..321f411 100644 (file)
@@ -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);
 }