lavfi-showfiltfmts.c: fix handling of null names
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Nov 2011 17:12:07 +0000 (18:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Nov 2011 17:12:25 +0000 (18:12 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/lavfi-showfiltfmts.c

index a4541ba..436f985 100644 (file)
@@ -33,6 +33,7 @@ static void print_formats(AVFilterContext *filter_ctx)
             AVFilterFormats *fmts =                                     \
                 filter_ctx->inout##puts[i]->outin##_formats;            \
             for (j = 0; j < fmts->format_count; j++)                    \
+                if(av_get_pix_fmt_name(fmts->formats[j]))               \
                 printf(#INOUT "PUT[%d] %s: fmt:%s\n",                   \
                        i, filter_ctx->filter->inout##puts[i].name,      \
                        av_get_pix_fmt_name(fmts->formats[j]));          \