lottie/vector: update the available variable only when we find a valid span data. 77/184477/2
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 18 Jul 2018 07:31:03 +0000 (16:31 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 19 Jul 2018 04:01:11 +0000 (04:01 +0000)
Change-Id: I5cad6ac11d2e8574b01399165cd8fc11909ed226

src/vector/vrle.cpp

index 4435e8e..b8aecca 100644 (file)
@@ -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