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

avfilter: use ff_all_channel_counts() instead of ff_all_channel_layouts()

Fixes playback of some files with ffplay.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-09-11 18:51:10 +00:00
parent e3e55758dc
commit 494b792441
15 changed files with 15 additions and 15 deletions

View File

@ -66,7 +66,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -160,7 +160,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -70,7 +70,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -96,7 +96,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -74,7 +74,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -144,7 +144,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -162,7 +162,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -109,7 +109,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -61,7 +61,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -113,7 +113,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -97,7 +97,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -612,7 +612,7 @@ static int query_formats(AVFilterContext *ctx)
if (s->nb_inputs == 1 && s->nb_outputs == 1) {
// We will instantiate multiple LADSPA_Handle, one over each channel
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);

View File

@ -257,7 +257,7 @@ static int query_formats(AVFilterContext *ctx)
ff_channel_layouts_ref(layouts, &ctx->outputs[0]->in_channel_layouts);
for (i = 0; i < 2; i++) {
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ff_channel_layouts_ref(layouts, &ctx->inputs[i]->out_channel_layouts);

View File

@ -420,7 +420,7 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);

View File

@ -154,7 +154,7 @@ static int query_formats(AVFilterContext *ctx)
AVFilterChannelLayouts *layouts;
int ret;
layouts = ff_all_channel_layouts();
layouts = ff_all_channel_counts();
if (!layouts)
return AVERROR(ENOMEM);
ret = ff_set_common_channel_layouts(ctx, layouts);