Browse Source

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.
tags/n1.0
Nicolas George 13 years ago
parent
commit
efcfcf8793
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/avf_concat.c

+ 1
- 1
libavfilter/avf_concat.c 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 };


Loading…
Cancel
Save