ff_copy_buffer_ref: use the channel count
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Dec 2012 13:10:48 +0000 (14:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Dec 2012 13:12:47 +0000 (14:12 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/buffer.c

index a8155ef..9a3f131 100644 (file)
@@ -230,7 +230,7 @@ AVFilterBufferRef *ff_copy_buffer_ref(AVFilterLink *outlink,
                                         ref->audio->nb_samples);
         if(!buf)
             return NULL;
-        channels = av_get_channel_layout_nb_channels(ref->audio->channel_layout);
+        channels = ref->audio->channels;
         av_samples_copy(buf->extended_data, ref->buf->extended_data,
                         0, 0, ref->audio->nb_samples,
                         channels,