[FFmpeg-cvslog] lavfi/trim: fix sample copy for >8 channels

Paul B Mahol git at videolan.org
Sun Jul 14 00:00:11 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 13 21:53:34 2013 +0000| [e9678631f16bd3a599a01853ce827dc3d7b63516] | committer: Paul B Mahol

lavfi/trim: fix sample copy for >8 channels

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9678631f16bd3a599a01853ce827dc3d7b63516
---

 libavfilter/trim.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/trim.c b/libavfilter/trim.c
index f6e75d3..6fa3c0c 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 },



More information about the ffmpeg-cvslog mailing list