Unified · Split
| @@ -285,10 +285,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 284 unmodified lines | |||
| 285 | s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data, | 285 | s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data, |
| 286 | frame->nb_samples, inlink->channels); | 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 | if (frame != out_frame) | 290 | if (frame != out_frame) |
| 289 | av_frame_free(&frame); | 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 | return ff_filter_frame(ctx->outputs[0], out_frame); | 293 | return ff_filter_frame(ctx->outputs[0], out_frame); |
| 293 | } | 294 | } |
| 294 | 295 | ||