lavfi-showfiltfmts: fix typo that segfaulted haiku.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Jan 2012 18:46:01 +0000 (19:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Jan 2012 18:46:55 +0000 (19:46 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/lavfi-showfiltfmts.c

index 436f985..26fccbb 100644 (file)
@@ -28,7 +28,7 @@ static void print_formats(AVFilterContext *filter_ctx)
     int i, j;
 
 #define PRINT_FMTS(inout, outin, INOUT)                                 \
-    for (i = 0; i < filter_ctx->input_count; i++) {                     \
+    for (i = 0; i < filter_ctx->inout##put_count; i++) {                     \
         if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_VIDEO) {   \
             AVFilterFormats *fmts =                                     \
                 filter_ctx->inout##puts[i]->outin##_formats;            \