lavfi/avf_showcqt: set frame durations

The filter is supposed to produce CFR output.
This commit is contained in:
Anton Khirnov 2022-08-16 16:26:11 +02:00
parent 7d13c5dff0
commit dc686a0c22
1 changed files with 1 additions and 0 deletions

View File

@ -1187,6 +1187,7 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout)
UPDATE_TIME(s->sono_time);
}
out->pts = s->next_pts;
out->duration = PTS_STEP;
s->next_pts += PTS_STEP;
}
s->sono_count = (s->sono_count + 1) % s->count;