summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-04-10 22:39:12 +0200
committerPaul B Mahol <onemda@gmail.com>2022-04-10 22:41:26 +0200
commit6e45acd23b6b5062f548c2551b1a64cc268eb787 (patch)
tree72f0b8f852b9ea2d441b1468ef2251bc5a3bf8d4 /libavfilter/avf_showspectrum.c
parent7ac559b819070b1d0a1111e7b80e35b9f1fb4cf3 (diff)
avfilter: let single output frame A->V filters set reasonable frame rate
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 6b99fc9a8b..c99dabad87 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -1241,6 +1241,8 @@ static int config_output(AVFilterLink *outlink)
int ret = av_parse_video_rate(&s->frame_rate, s->rate_str);
if (ret < 0)
return ret;
+ } else if (s->single_pic) {
+ s->frame_rate = av_make_q(1, 1);
} else {
s->frame_rate = s->auto_frame_rate;
}