aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-11 22:44:46 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-02 21:57:24 +0200
commitaab0c344c5d1d5b1020f87c62da3e523161a660f (patch)
tree9e8851e54b1e1cccfcc4fa8befb535e78f839bf9
parent0d0373de3bc6aa6fa5c71247191afccfaf20723d (diff)
downloadffmpeg-aab0c344c5d1d5b1020f87c62da3e523161a660f.tar.gz
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>
-rw-r--r--libavfilter/avf_showcwt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 24d16d9075..89a019a0d4 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -1028,6 +1028,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;
}