Browse Source

ff_copy_buffer_ref: use the channel count

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
e69e780cde
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/buffer.c

+ 1
- 1
libavfilter/buffer.c View File

@@ -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…
Cancel
Save