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>
pull/151/head
Paul B Mahol 9 years ago
parent e3e55758dc
commit 494b792441
  1. 2
      libavfilter/af_adelay.c
  2. 2
      libavfilter/af_aecho.c
  3. 2
      libavfilter/af_afade.c
  4. 2
      libavfilter/af_aphaser.c
  5. 2
      libavfilter/af_astats.c
  6. 2
      libavfilter/af_biquads.c
  7. 2
      libavfilter/af_chorus.c
  8. 2
      libavfilter/af_compand.c
  9. 2
      libavfilter/af_dcshift.c
  10. 2
      libavfilter/af_dynaudnorm.c
  11. 2
      libavfilter/af_flanger.c
  12. 2
      libavfilter/af_ladspa.c
  13. 2
      libavfilter/af_sidechaincompress.c
  14. 2
      libavfilter/af_silenceremove.c
  15. 2
      libavfilter/f_reverse.c

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

@ -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);

Loading…
Cancel
Save