From e69e780cde8d6ab5fc5f3f6eac056793e7988ef4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 12 Dec 2012 14:10:48 +0100 Subject: [PATCH] ff_copy_buffer_ref: use the channel count Signed-off-by: Michael Niedermayer --- libavfilter/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c index a8155efbdd..9a3f131dd0 100644 --- a/libavfilter/buffer.c +++ b/libavfilter/buffer.c @@ -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,