lavfi/avf_ahistogram: set frame durations

The filter is supposed to produce CFR output.
pull/388/head
Anton Khirnov 2 years ago
parent 502892d706
commit ed48d00861
  1. 1
      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;

Loading…
Cancel
Save