aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-14 00:56:20 +0100
committerClément Bœsch <ubitux@gmail.com>2013-03-14 01:24:42 +0100
commit9efcfbed9dd64679145f5f39d9a812dfeea97172 (patch)
tree43c48ad4dc5bbf6fd7a9a1e13a838ee25daf61e6
parenta95a38793c75fa8e424f91f1adf1be6ced69f953 (diff)
downloadffmpeg-9efcfbed9dd64679145f5f39d9a812dfeea97172.tar.gz
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.
-rw-r--r--libavfilter/f_ebur128.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index 05ea63033f..acf29d5089 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -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;
}