From 1b84e062444db29f8e8999f5f0081f9bce0e1a31 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 26 Nov 2011 18:12:07 +0100 Subject: [PATCH] lavfi-showfiltfmts.c: fix handling of null names Signed-off-by: Michael Niedermayer --- tools/lavfi-showfiltfmts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lavfi-showfiltfmts.c b/tools/lavfi-showfiltfmts.c index a4541bac82..436f985cb2 100644 --- a/tools/lavfi-showfiltfmts.c +++ b/tools/lavfi-showfiltfmts.c @@ -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])); \