Commit e69e780c authored by Michael Niedermayer's avatar Michael Niedermayer

ff_copy_buffer_ref: use the channel count

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5a4eb6aa
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment