From efcfcf8793a64525536e809e04f952ebed719b28 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sat, 28 Jul 2012 14:57:52 +0200 Subject: [PATCH] avf_concat: fix silence duration. concat_in.pts starts at 0 for each segment, so the duration of the silence was too long, except at the first stitch. --- libavfilter/avf_concat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c index 005e4147aa..6b4fffa19f 100644 --- a/libavfilter/avf_concat.c +++ b/libavfilter/avf_concat.c @@ -269,7 +269,7 @@ static void send_silence(AVFilterContext *ctx, unsigned in_no, unsigned out_no) { ConcatContext *cat = ctx->priv; AVFilterLink *outlink = ctx->outputs[out_no]; - int64_t base_pts = cat->in[in_no].pts; + int64_t base_pts = cat->in[in_no].pts + cat->delta_ts; int64_t nb_samples, sent = 0; int frame_nb_samples; AVRational rate_tb = { 1, ctx->inputs[in_no]->sample_rate };