lavfi/af_aconvert: update audio->channels.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 20 Dec 2012 15:38:53 +0000 (16:38 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 20 Dec 2012 16:01:35 +0000 (17:01 +0100)
libavfilter/af_aconvert.c

index 54f1fcd..e41095f 100644 (file)
@@ -147,6 +147,7 @@ static int  filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamplesref)
                         (void *)insamplesref->data, n);
 
     avfilter_copy_buffer_ref_props(outsamplesref, insamplesref);
+    outsamplesref->audio->channels       = outlink->channels;
     outsamplesref->audio->channel_layout = outlink->channel_layout;
 
     ret = ff_filter_frame(outlink, outsamplesref);