Browse code

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: Michael Niedermayer <michael@niedermayer.cc>

Muhammad Faiz authored on 2015/12/01 00:20:30
Showing 1 changed files
... ...
@@ -466,7 +466,7 @@ static int init_axis_color(ShowCQTContext *s, AVFrame *tmp)
466 466
     double *freq = NULL;
467 467
     int x, y, ret;
468 468
 
469
-    if (s->basefreq != BASEFREQ || s->endfreq != ENDFREQ) {
469
+    if (s->basefreq != (double) BASEFREQ || s->endfreq != (double) ENDFREQ) {
470 470
         av_log(s->ctx, AV_LOG_WARNING, "font axis rendering is not implemented in non-default frequency range,"
471 471
                " please use axisfile option instead.\n");
472 472
         return AVERROR(EINVAL);