projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb14d9
)
Reject reversed frames
14/273514/1
author
Nicholas Guriev
<nicholas@guriev.su>
Fri, 28 May 2021 12:34:42 +0000
(15:34 +0300)
committer
jykeon
<jykeon@samsung.com>
Thu, 7 Apr 2022 01:55:11 +0000
(10:55 +0900)
Change-Id: I162cfaf0a68967f2e248a3c3af4a0fbb2ce30a54
Signed-off-by: jykeon <jykeon@samsung.com>
src/lottie/lottieparser.cpp
patch
|
blob
|
history
diff --git
a/src/lottie/lottieparser.cpp
b/src/lottie/lottieparser.cpp
index 3cb3f76005cc70f0b6ae3d488aff2189fb62ddcb..ebaaf3e99510e33103e95c3834e14e52d9542d67 100644
(file)
--- a/
src/lottie/lottieparser.cpp
+++ b/
src/lottie/lottieparser.cpp
@@
-688,6
+688,10
@@
void LottieParserImpl::parseComposition()
// don't have a valid bodymovin header
return;
}
+ if (comp->mStartFrame > comp->mEndFrame) {
+ // reveresed animation? missing data?
+ return;
+ }
if (!IsValid()) {
return;
}