aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-26 18:12:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-26 18:12:25 +0100
commit1b84e062444db29f8e8999f5f0081f9bce0e1a31 (patch)
tree671accafe6193799a662c50796a7c587733ed9df
parent61c2cec9579b5a24e95102b137eab3ecc6902d15 (diff)
downloadffmpeg-1b84e062444db29f8e8999f5f0081f9bce0e1a31.tar.gz
lavfi-showfiltfmts.c: fix handling of null names
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tools/lavfi-showfiltfmts.c1
1 files changed, 1 insertions, 0 deletions
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])); \