diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2015-11-30 22:20:30 +0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-07 01:28:48 +0100 |
commit | 54ed3ebbe491be6b9af37bfb0313594b0973ee40 (patch) | |
tree | ca5872e638300638fa6ca9ec5ce9ad5caaf368d6 /libavfilter/avf_showcqt.c | |
parent | 162754c1e0df9e7b2f85bbc9799feb89c1e7eb11 (diff) | |
download | ffmpeg-54ed3ebbe491be6b9af37bfb0313594b0973ee40.tar.gz |
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>
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r-- | libavfilter/avf_showcqt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index d6e2928d7d..712a9997fe 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -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); |