Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-14 01:53:34 +0400
committerPaul B Mahol <onemda@gmail.com>2013-07-14 01:54:02 +0400
commite9678631f16bd3a599a01853ce827dc3d7b63516 (patch)
tree587b0c4c482dfe6c3509165b4783c827412420f0 /libavfilter/trim.c
parent6347824d5310691d1e0bf34a87c6044f28e4b9c7 (diff)
lavfi/trim: fix sample copy for >8 channels
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/trim.c')
-rw-r--r--libavfilter/trim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/trim.c b/libavfilter/trim.c
index f6e75d352a..6fa3c0cf2f 100644
--- a/libavfilter/trim.c
+++ b/libavfilter/trim.c
@@ -333,7 +333,7 @@ static int atrim_filter_frame(AVFilterLink *inlink, AVFrame *frame)
av_frame_copy_props(out, frame);
av_samples_copy(out->extended_data, frame->extended_data, 0, start_sample,
- out->nb_samples, av_get_channel_layout_nb_channels(frame->channel_layout),
+ out->nb_samples, inlink->channels,
frame->format);
if (out->pts != AV_NOPTS_VALUE)
out->pts += av_rescale_q(start_sample, (AVRational){ 1, out->sample_rate },