diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-12 14:10:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-12 14:12:47 +0100 |
commit | e69e780cde8d6ab5fc5f3f6eac056793e7988ef4 (patch) | |
tree | e5215ea7424aa02716329b2399e1b9f121dfb997 | |
parent | 5a4eb6aa275e4c1b80e1e125a7901903e35219f2 (diff) | |
download | ffmpeg-e69e780cde8d6ab5fc5f3f6eac056793e7988ef4.tar.gz |
ff_copy_buffer_ref: use the channel count
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |