Browse Source

lavfi/ebur128: fix format negociation for output.

Before this change, the audio input and output formats are set
independently, so the lavfi negociation could pick different settings
for the input and output. This is particularly true for the channel
layout settings, where multiple choices were available.

Fixes Ticket2342.
tags/n2.0
Clément Bœsch 12 years ago
parent
commit
9efcfbed9d
1 changed files with 0 additions and 16 deletions
  1. +0
    -16
      libavfilter/f_ebur128.c

+ 0
- 16
libavfilter/f_ebur128.c View File

@@ -690,22 +690,6 @@ static int query_formats(AVFilterContext *ctx)
outlink = ctx->outputs[1];
}

/* set audio output formats (same as input since it's just a passthrough) */
formats = ff_make_format_list(sample_fmts);
if (!formats)
return AVERROR(ENOMEM);
ff_formats_ref(formats, &outlink->in_formats);

layouts = ff_all_channel_layouts();
if (!layouts)
return AVERROR(ENOMEM);
ff_channel_layouts_ref(layouts, &outlink->in_channel_layouts);

formats = ff_make_format_list(input_srate);
if (!formats)
return AVERROR(ENOMEM);
ff_formats_ref(formats, &outlink->in_samplerates);

return 0;
}



Loading…
Cancel
Save