diff mbox series

[FFmpeg-devel,3/8] lavfi/avf_ahistogram: set frame durations

Message ID 20220928092132.31566-3-anton@khirnov.net
State Accepted
Commit ed48d0086145d506ff609741c798d2773b164de9
Headers show
Series [FFmpeg-devel,1/8] lavfi/vf_fps: set frame duration | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Sept. 28, 2022, 9:21 a.m. UTC
The filter is supposed to produce CFR output.
---
 libavfilter/avf_ahistogram.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;