summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2023-01-11 23:40:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-01-11 23:40:55 +0000
commit286f46824a6736398ded0b4d4f5c4f531bab03cf (patch)
tree7193771ec8656f1616b708e11d7cc59b1a3ae330
parentd64959e2f2b4c46e035af862166d1836d8d717a1 (diff)
parent75349aab31082af7e496c528d2529bd905fdd12d (diff)
downloadLegacyCamera-286f46824a6736398ded0b4d4f5c4f531bab03cf.tar.gz
Merge "Suppress clang-analyzer-security.FloatLoopCounter warnings"main-16k-with-phones
-rw-r--r--jni/feature_stab/src/dbreg/dbstabsmooth.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
index dffff8ab..d2e7a283 100644
--- a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
+++ b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
@@ -136,6 +136,8 @@ bool db_StabilizationSmoother::smoothMotionAdaptive(/*VP_BIMG *bimg,*/int hsize,
smoothFactor = minSmoothFactor;
// Find the amount of motion that must be compensated so that no "border" pixels are seen in the stable video
+ // FixLater: avoid floating point loop counters
+ // NOLINTNEXTLINE(clang-analyzer-security.FloatLoopCounter,cert-flp30-c)
for (smoothFactor = smoothFactor; smoothFactor >= minSmoothFactor; smoothFactor -= 0.01) {
// Compute the smoothed motion
if(!smoothMotion(inmot, &tmpMotion, smoothFactor))