bootanimation: add empty lines parsing skip for desc.txt

BUG: 259265292
Test: adb shell bootanimation
Change-Id: I6bd6ed78232cef56b3f99006f4d7780eeef8b881
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
This commit is contained in:
yidong zhang
2022-12-07 15:55:31 +08:00
parent 5bdc4b86fa
commit 87bb346640

View File

@@ -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);