1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

lavfi/avf_ahistogram: set frame durations

The filter is supposed to produce CFR output.
This commit is contained in:
Anton Khirnov 2022-08-16 16:26:11 +02:00
parent 502892d706
commit ed48d00861

View File

@ -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;