summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-16 16:26:11 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-23 16:51:28 +0200
commitb21f9ba474454fbf04a7d4b3ac353b6fc14d15c7 (patch)
treecf83048b3b5a367e678d54b47aaad316fadce2b7
parent4f9ef00fe52a77f67ff5ef191ddb7e05ee4c7ec3 (diff)
lavfi/avf_aphasemeter: set frame durations
The filter is supposed to produce CFR output.
-rw-r--r--libavfilter/avf_aphasemeter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c
index 3501e62825..0f7692982c 100644
--- a/libavfilter/avf_aphasemeter.c
+++ b/libavfilter/avf_aphasemeter.c
@@ -327,6 +327,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *clone;
s->out->pts = in->pts;
+ s->out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
+
clone = av_frame_clone(s->out);
if (!clone)
return AVERROR(ENOMEM);