diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-16 16:26:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-23 16:51:28 +0200 |
commit | b21f9ba474454fbf04a7d4b3ac353b6fc14d15c7 (patch) | |
tree | cf83048b3b5a367e678d54b47aaad316fadce2b7 | |
parent | 4f9ef00fe52a77f67ff5ef191ddb7e05ee4c7ec3 (diff) |
lavfi/avf_aphasemeter: set frame durations
The filter is supposed to produce CFR output.
-rw-r--r-- | libavfilter/avf_aphasemeter.c | 2 |
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); |