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 | 4f9ef00fe52a77f67ff5ef191ddb7e05ee4c7ec3 (patch) | |
tree | ce2fb2c60af5e47a927d5ca5f6e4d8f6f388991c | |
parent | ab9cdd8519e4195640975c84a67ba72a59ecafd1 (diff) |
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; |