Showing the changes to libavfilter/af_aecho.c (1 of 1 file). Show all
Unified · Split
| @@ -285,10 +285,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 284 unmodified lines | ||
| 285 | 285 | s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data, |
| 286 | 286 | frame->nb_samples, inlink->channels); |
| 287 | 287 | |
| 288 | + s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); | |
| 289 | + | |
| 288 | 290 | if (frame != out_frame) |
| 289 | 291 | av_frame_free(&frame); |
| 290 | 292 | |
| 291 | − s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); | |
| 292 | 293 | return ff_filter_frame(ctx->outputs[0], out_frame); |
| 293 | 294 | } |
| 294 | 295 | |