Make query_formats() increment the scaler_count after each scaler
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 10 Jan 2010 14:23:19 +0000 (14:23 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 10 Jan 2010 14:23:19 +0000 (14:23 +0000)
insertion.

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

libavfilter/avfiltergraph.c

index 73e5f1476fa2641af6f552969e3f6c32c52dd31d..d46548e3e2ae80b353a4db5660949355433dcf91 100644 (file)
@@ -132,7 +132,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
                     char scale_args[256];
                     /* couldn't merge format lists. auto-insert scale filter */
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
                     char scale_args[256];
                     /* couldn't merge format lists. auto-insert scale filter */
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
-                             scaler_count);
+                             scaler_count++);
                     scale =
                         avfilter_open(avfilter_get_by_name("scale"),inst_name);
 
                     scale =
                         avfilter_open(avfilter_get_by_name("scale"),inst_name);