[FFmpeg-cvslog] r23054 - trunk/libavfilter/vf_pad.c

mru subversion
Fri May 7 19:53:30 CEST 2010


Author: mru
Date: Fri May  7 19:53:29 2010
New Revision: 23054

Log:
vf_pad: fix mixed code and declarations

Modified:
   trunk/libavfilter/vf_pad.c

Modified: trunk/libavfilter/vf_pad.c
==============================================================================
--- trunk/libavfilter/vf_pad.c	Fri May  7 15:00:56 2010	(r23053)
+++ trunk/libavfilter/vf_pad.c	Fri May  7 19:53:29 2010	(r23054)
@@ -200,8 +200,9 @@ static AVFilterPicRef *get_video_buffer(
     AVFilterPicRef *picref = avfilter_get_video_buffer(inlink->dst->outputs[0], perms,
                                                        w + (pad->w - pad->in_w),
                                                        h + (pad->h - pad->in_h));
+    int plane;
 
-    for (int plane = 0; plane < 4 && picref->data[plane]; plane++) {
+    for (plane = 0; plane < 4 && picref->data[plane]; plane++) {
         int hsub = (plane == 1 || plane == 2) ? pad->hsub : 0;
         int vsub = (plane == 1 || plane == 2) ? pad->vsub : 0;
 
@@ -216,9 +217,11 @@ static void start_frame(AVFilterLink *in
 {
     PadContext *pad = inlink->dst->priv;
     AVFilterPicRef *outpicref = avfilter_ref_pic(inpicref, ~0);
+    int plane;
+
     inlink->dst->outputs[0]->outpic = outpicref;
 
-    for (int plane = 0; plane < 4 && outpicref->data[plane]; plane++) {
+    for (plane = 0; plane < 4 && outpicref->data[plane]; plane++) {
         int hsub = (plane == 1 || plane == 2) ? pad->hsub : 0;
         int vsub = (plane == 1 || plane == 2) ? pad->vsub : 0;
 



More information about the ffmpeg-cvslog mailing list