mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
0d0373de3b
commit
aab0c344c5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue