avfilter/avf_showcwt: Check av_parse_video_rate() for failure

Fixes: CID1539147 Unused value

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit aab0c344c5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.0
Michael Niedermayer 8 months ago
parent 82dcc0fb8e
commit 09806744cc
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavfilter/avf_showcwt.c

@ -1029,6 +1029,8 @@ static int config_output(AVFilterLink *outlink)
s->auto_frame_rate = av_make_q(inlink->sample_rate, s->hop_size);
if (strcmp(s->rate_str, "auto")) {
ret = av_parse_video_rate(&s->frame_rate, s->rate_str);
if (ret < 0)
return ret;
} else {
s->frame_rate = s->auto_frame_rate;
}

Loading…
Cancel
Save