diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-16 16:26:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-04 11:55:03 +0200 |
commit | ed48d0086145d506ff609741c798d2773b164de9 (patch) | |
tree | 94872df025814963bdefe679dba40cde136385a6 | |
parent | 502892d70615f473c5684a9f6942f3dddb994069 (diff) | |
download | ffmpeg-ed48d0086145d506ff609741c798d2773b164de9.tar.gz |
lavfi/avf_ahistogram: set frame durations
The filter is supposed to produce CFR output.
-rw-r--r-- | libavfilter/avf_ahistogram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c index d14e0bcfac..c45493730d 100644 --- a/libavfilter/avf_ahistogram.c +++ b/libavfilter/avf_ahistogram.c @@ -245,6 +245,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) memset(s->out->data[3] + n * s->out->linesize[0], 0, w); } s->out->pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base); + s->out->duration = 1; s->first = s->frame_count; |