From 238edd2fe33da8281b3774196c3de503ea64b745 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sun, 2 Dec 2012 16:31:15 +0100 Subject: lavfi: add a channels field to AVFilterLink. Also: fix af_pan and af_aresample, that forgot to update audio->channels. --- libavfilter/avfiltergraph.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavfilter/avfiltergraph.c') diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 52af2adbfc..9164559779 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -473,6 +473,7 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref) } link->in_channel_layouts->nb_channel_layouts = 1; link->channel_layout = link->in_channel_layouts->channel_layouts[0]; + link->channels = av_get_channel_layout_nb_channels(link->channel_layout); } ff_formats_unref(&link->in_formats); -- cgit v1.2.3