diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-12-02 19:31:15 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-12-20 16:03:41 +0400 |
commit | 238edd2fe33da8281b3774196c3de503ea64b745 (patch) | |
tree | 9f71652f61febabf3bcf35e0cb87f5a2df7bbabd /libavfilter/af_pan.c | |
parent | a9275b4f6938ef5954a7c3d5b86787eac600611c (diff) |
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_pan.c')
-rw-r--r-- | libavfilter/af_pan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index 922025ab88..77ca549167 100644 --- a/libavfilter/af_pan.c +++ b/libavfilter/af_pan.c @@ -364,6 +364,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) swr_convert(pan->swr, outsamples->data, n, (void *)insamples->data, n); avfilter_copy_buffer_ref_props(outsamples, insamples); outsamples->audio->channel_layout = outlink->channel_layout; + outsamples->audio->channels = outlink->channels; ret = ff_filter_frame(outlink, outsamples); avfilter_unref_buffer(insamples); |