mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
bavfilter/filtfmts: fix type for channel layouts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
270a325f0c
commit
f5326dc68e
@ -45,6 +45,7 @@ static void print_formats(AVFilterContext *filter_ctx)
|
|||||||
av_get_pix_fmt_name(fmts->formats[j])); \
|
av_get_pix_fmt_name(fmts->formats[j])); \
|
||||||
} else if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_AUDIO) { \
|
} else if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_AUDIO) { \
|
||||||
AVFilterFormats *fmts; \
|
AVFilterFormats *fmts; \
|
||||||
|
AVFilterChannelLayouts *layouts; \
|
||||||
\
|
\
|
||||||
fmts = filter_ctx->inout##puts[i]->outin##_formats; \
|
fmts = filter_ctx->inout##puts[i]->outin##_formats; \
|
||||||
for (j = 0; j < fmts->format_count; j++) \
|
for (j = 0; j < fmts->format_count; j++) \
|
||||||
@ -52,11 +53,11 @@ static void print_formats(AVFilterContext *filter_ctx)
|
|||||||
i, filter_ctx->filter->inout##puts[i].name, \
|
i, filter_ctx->filter->inout##puts[i].name, \
|
||||||
av_get_sample_fmt_name(fmts->formats[j])); \
|
av_get_sample_fmt_name(fmts->formats[j])); \
|
||||||
\
|
\
|
||||||
fmts = filter_ctx->inout##puts[i]->outin##_channel_layouts; \
|
layouts = filter_ctx->inout##puts[i]->outin##_channel_layouts; \
|
||||||
for (j = 0; j < fmts->format_count; j++) { \
|
for (j = 0; j < layouts->nb_channel_layouts; j++) { \
|
||||||
char buf[256]; \
|
char buf[256]; \
|
||||||
av_get_channel_layout_string(buf, sizeof(buf), -1, \
|
av_get_channel_layout_string(buf, sizeof(buf), -1, \
|
||||||
fmts->formats[j]); \
|
layouts->channel_layouts[j]); \
|
||||||
printf(#INOUT "PUT[%d] %s: chlayout:%s\n", \
|
printf(#INOUT "PUT[%d] %s: chlayout:%s\n", \
|
||||||
i, filter_ctx->filter->inout##puts[i].name, buf); \
|
i, filter_ctx->filter->inout##puts[i].name, buf); \
|
||||||
} \
|
} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user