1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi-showfiltfmts.c: fix handling of null names

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-26 18:12:07 +01:00
parent 61c2cec957
commit 1b84e06244

View File

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