[FFmpeg-cvslog] avf_concat: fix silence duration.
Nicolas George
git at videolan.org
Sat Jul 28 15:30:53 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sat Jul 28 14:57:52 2012 +0200| [efcfcf8793a64525536e809e04f952ebed719b28] | committer: Nicolas George
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=efcfcf8793a64525536e809e04f952ebed719b28
---
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 005e414..6b4fffa 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 };
More information about the ffmpeg-cvslog
mailing list