summaryrefslogtreecommitdiff
path: root/libavfilter/avf_aphasemeter.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-16 16:26:11 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-04 11:55:03 +0200
commitae84484c78740c1c814276c3d5c9f7601abed936 (patch)
tree089dbaee22de911f72b04c569c98dda1c12885df /libavfilter/avf_aphasemeter.c
parented48d0086145d506ff609741c798d2773b164de9 (diff)
downloadffmpeg-ae84484c78740c1c814276c3d5c9f7601abed936.tar.gz
lavfi/avf_aphasemeter: set frame durations
The filter is supposed to produce CFR output.
Diffstat (limited to 'libavfilter/avf_aphasemeter.c')
-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);