lavfi-showfiltfmts.c: fix handling of null names

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent 61c2cec957
commit 1b84e06244
  1. 1
      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])); \

Loading…
Cancel
Save