[FFmpeg-cvslog] ff_copy_buffer_ref: use the channel count
Michael Niedermayer
git at videolan.org
Wed Dec 12 14:20:52 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 12 14:10:48 2012 +0100| [e69e780cde8d6ab5fc5f3f6eac056793e7988ef4] | committer: Michael Niedermayer
ff_copy_buffer_ref: use the channel count
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e69e780cde8d6ab5fc5f3f6eac056793e7988ef4
---
libavfilter/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index a8155ef..9a3f131 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,
More information about the ffmpeg-cvslog
mailing list