In pad filter, update new ref w/h in start_frame, fix chaining
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 5 Jan 2011 01:14:14 +0000 (01:14 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 5 Jan 2011 01:14:14 +0000 (01:14 +0000)
Originally committed as revision 26217 to svn://svn.ffmpeg.org/ffmpeg/trunk

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);
 }