feat: support Item:Length metadata in MotionPhotoWriter

This commit is contained in:
zhoubinjia committed 2026-05-11 14:48:00 +08:00
1 parent b50ced4bf5
commit b5c3e2e435
1 file changed
+1
@@ -113,6 +113,7 @@ object MotionPhotoWriter {
val segmentString = String(segmentData, StandardCharsets.UTF_8)
val regexes = listOf(
"""Item:Length="(\d+)"""".toRegex(),
"""MicroVideoOffset="(\d+)"""".toRegex(),
"""VideoLength="(\d+)"""".toRegex()
)