From: subhransu mohanty Date: Wed, 18 Jul 2018 07:31:03 +0000 (+0900) Subject: lottie/vector: update the available variable only when we find a valid span data. X-Git-Tag: submit/tizen/20180917.042405~228 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bad22db71648499f704eb44cbf13b785d663307c;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie/vector: update the available variable only when we find a valid span data. Change-Id: I5cad6ac11d2e8574b01399165cd8fc11909ed226 --- diff --git a/src/vector/vrle.cpp b/src/vector/vrle.cpp index 4435e8e..b8aecca 100644 --- a/src/vector/vrle.cpp +++ b/src/vector/vrle.cpp @@ -169,9 +169,9 @@ rleIntersectWithRect(const VRect &clip, out->y = spans->y; out->coverage = spans->coverage; ++out; + --available; } ++spans; - --available; } // update the span list that yet to be processed