[FFmpeg-cvslog] lavfi/avf_ahistogram: set frame durations

Anton Khirnov git at videolan.org
Tue Oct 4 12:56:50 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 16 16:26:11 2022 +0200| [ed48d0086145d506ff609741c798d2773b164de9] | committer: Anton Khirnov

lavfi/avf_ahistogram: set frame durations

The filter is supposed to produce CFR output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed48d0086145d506ff609741c798d2773b164de9
---

 libavfilter/avf_ahistogram.c | 1 +
 1 file changed, 1 insertion(+)

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;
 



More information about the ffmpeg-cvslog mailing list