[FFmpeg-cvslog] avfilter/avf_showcqt: Fix gamma comparisons
Michael Niedermayer
git at videolan.org
Tue May 12 20:38:59 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 12 20:31:21 2015 +0200| [d3c9f1fdbe055acdd6b47b85bfd04aaed2da8016] | committer: Michael Niedermayer
avfilter/avf_showcqt: Fix gamma comparisons
Fixes CID1297587, CID1297586, 1297585
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3c9f1fdbe055acdd6b47b85bfd04aaed2da8016
---
libavfilter/avf_showcqt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index ee76d19..85f9ea9 100644
--- a/libavfilter/avf_showcqt.c
+++ b/libavfilter/avf_showcqt.c
@@ -585,11 +585,11 @@ static int plot_cqt(AVFilterLink *inlink)
if (s->gamma2 == 1.0f)
result[x][3] = result[x][1];
- else if (s->gamma2 = 2.0f)
+ else if (s->gamma2 == 2.0f)
result[x][3] = sqrtf(result[x][1]);
- else if (s->gamma2 = 3.0f)
+ else if (s->gamma2 == 3.0f)
result[x][3] = cbrtf(result[x][1]);
- else if (s->gamma2 = 4.0f)
+ else if (s->gamma2 == 4.0f)
result[x][3] = sqrtf(sqrtf(result[x][1]));
else
result[x][3] = expf(logf(result[x][1]) * (1.0f / s->gamma2));
More information about the ffmpeg-cvslog
mailing list