summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Hongguang Chen <hgchen@google.com> 2022-12-07 21:55:11 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-12-07 21:55:11 +0000
commitd47dbbb9b1081248e12587473f2edde5650bd324 (patch)
treece9ee34d85d8bd7bc087be3548cf5891c75e5197 /cmds/bootanimation/BootAnimation.cpp
parente01b666059f22bce7d2d7eb6dd0952183a42596e (diff)
parentac614b3da584403a6efbfbd8db29abad14239521 (diff)
Merge "bootanimation: add empty lines parsing skip for desc.txt" am: 936f661025 am: ac614b3da5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2331190 Change-Id: I8cd966f9b020a3b691a21dcb66ca9fc7c63831af Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 19d863ca1014..a25823b07b22 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -1114,6 +1114,11 @@ bool BootAnimation::parseAnimationDesc(Animation& animation) {
int nextReadPos;
+ if (strlen(l) == 0) {
+ s = ++endl;
+ continue;
+ }
+
int topLineNumbers = sscanf(l, "%d %d %d %d", &width, &height, &fps, &progress);
if (topLineNumbers == 3 || topLineNumbers == 4) {
// SLOGD("> w=%d, h=%d, fps=%d, progress=%d", width, height, fps, progress);