mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00: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