Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-16 17:26:11 +0300
committerAnton Khirnov <anton@khirnov.net>2022-10-04 12:55:03 +0300
commitae84484c78740c1c814276c3d5c9f7601abed936 (patch)
tree089dbaee22de911f72b04c569c98dda1c12885df /libavfilter
parented48d0086145d506ff609741c798d2773b164de9 (diff)
lavfi/avf_aphasemeter: set frame durations
The filter is supposed to produce CFR output.
Diffstat (limited to 'libavfilter')
-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);