mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-27 01:33:20 +00:00
ff_copy_buffer_ref: use the channel count
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5a4eb6aa27
commit
e69e780cde
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user