aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_aresample.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-12-02 16:31:15 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-12-20 13:03:41 +0100
commit238edd2fe33da8281b3774196c3de503ea64b745 (patch)
tree9f71652f61febabf3bcf35e0cb87f5a2df7bbabd /libavfilter/af_aresample.c
parenta9275b4f6938ef5954a7c3d5b86787eac600611c (diff)
downloadffmpeg-238edd2fe33da8281b3774196c3de503ea64b745.tar.gz
lavfi: add a channels field to AVFilterLink.
Also: fix af_pan and af_aresample, that forgot to update audio->channels.
Diffstat (limited to 'libavfilter/af_aresample.c')
-rw-r--r--libavfilter/af_aresample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index 03c8f01ef5..86061193a0 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -184,6 +184,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamplesref)
avfilter_copy_buffer_ref_props(outsamplesref, insamplesref);
outsamplesref->format = outlink->format;
+ outsamplesref->audio->channels = outlink->channels;
outsamplesref->audio->channel_layout = outlink->channel_layout;
outsamplesref->audio->sample_rate = outlink->sample_rate;