mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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.
This commit is contained in:
parent
4ce87ecf2a
commit
efcfcf8793
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user