1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +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:
Nicolas George 2012-07-28 14:57:52 +02:00
parent 4ce87ecf2a
commit efcfcf8793

View File

@ -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 };