Commit 54ed3ebb authored by Muhammad Faiz's avatar Muhammad Faiz Committed by Michael Niedermayer

avfilter/showcqt: BASEFREQ and ENDFREQ cast to double

fix default basefreq/endfreq comparison
on platform that does not do comparison
in double type

found on zeranoe 32-bit build, where
default freq range is detected as non-default
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 162754c1
......@@ -466,7 +466,7 @@ static int init_axis_color(ShowCQTContext *s, AVFrame *tmp)
double *freq = NULL;
int x, y, ret;
if (s->basefreq != BASEFREQ || s->endfreq != ENDFREQ) {
if (s->basefreq != (double) BASEFREQ || s->endfreq != (double) ENDFREQ) {
av_log(s->ctx, AV_LOG_WARNING, "font axis rendering is not implemented in non-default frequency range,"
" please use axisfile option instead.\n");
return AVERROR(EINVAL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment