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

avfilter/avf_showvolume: set output video frame duration

This commit is contained in:
Paul B Mahol 2023-01-17 18:55:52 +01:00
parent 04bbf5f70d
commit ceb52d47a3

View File

@ -339,6 +339,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
clear_picture(s, outlink);
}
s->out->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
s->out->duration = 1;
if ((s->f < 1.) && (s->f > 0.)) {
for (j = 0; j < outlink->h; j++) {