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:
parent
04bbf5f70d
commit
ceb52d47a3
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user