From c879097e892e124c668557c1659f729073faf566 Mon Sep 17 00:00:00 2001 From: Stefan Jahn Date: Sat, 26 Nov 2022 00:09:27 +0100 Subject: [PATCH] small optimization --- histogram.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/histogram.cc b/histogram.cc index c1d13d9..e576421 100644 --- a/histogram.cc +++ b/histogram.cc @@ -115,7 +115,7 @@ void histogram_update(VideoFrame *vf) { // save some time static int to = 0; - if ((++to) % 8 == 0) to = 0; + if ((++to) % 8 == 0) return; int chan, i, x, y;