Browse code

100L fix get_video_buffer in pad filter, get_video_buffer will store wrong values for w and h

Originally committed as revision 25759 to svn://svn.ffmpeg.org/ffmpeg/trunk

Baptiste Coudurier authored on 2010/11/17 10:03:06
Showing 1 changed files
... ...
@@ -230,6 +230,9 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *inlink, int perms, int
230 230
                                                        h + (pad->h - pad->in_h));
231 231
     int plane;
232 232
 
233
+    picref->video->w = w;
234
+    picref->video->h = h;
235
+
233 236
     for (plane = 0; plane < 4 && picref->data[plane]; plane++) {
234 237
         int hsub = (plane == 1 || plane == 2) ? pad->hsub : 0;
235 238
         int vsub = (plane == 1 || plane == 2) ? pad->vsub : 0;