lavfi/af_amerge: set outbuf->audio->channels.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 31 Jan 2013 13:26:15 +0000 (14:26 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 31 Jan 2013 20:03:54 +0000 (21:03 +0100)
The value is lost because of avfilter_copy_buffer_ref_props().

Fix trac ticket #2217.

libavfilter/af_amerge.c

index e552682..f67a7a8 100644 (file)
@@ -260,6 +260,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
 
     outbuf->audio->nb_samples     = nb_samples;
     outbuf->audio->channel_layout = outlink->channel_layout;
+    outbuf->audio->channels       = outlink->channels;
 
     while (nb_samples) {
         ns = nb_samples;