Skip to content

Avoid infinite placement loop when lineHeight is 0#71

Open
Frenzie wants to merge 1 commit intovideojs:0.15.xfrom
Frenzie:avoid-infinite-placement-loop
Open

Avoid infinite placement loop when lineHeight is 0#71
Frenzie wants to merge 1 commit intovideojs:0.15.xfrom
Frenzie:avoid-infinite-placement-loop

Conversation

@Frenzie
Copy link

@Frenzie Frenzie commented Mar 3, 2026

This can happen for empty subtitles.


Intuitively it makes more sense to me to ignore them earlier in the chain, but the tests expect it to exist there, which I suppose makes sense from a VTT parsing perspective.

00:06.000 --> 00:08.000
00:06.000 --> 00:08.000
Text

{
"align": "middle",
"endTime": 8,
"id": "",
"line": "auto",
"lineAlign": "start",
"pauseOnExit": false,
"position": 50,
"positionAlign": "middle",
"region": "",
"size": 100,
"snapToLines": true,
"startTime": 6,
"text": "",
"vertical": ""
},

This can happen for empty subtitles.
@Frenzie Frenzie force-pushed the avoid-infinite-placement-loop branch from 6d5497a to 8e89a2a Compare March 4, 2026 10:49
@Frenzie Frenzie changed the title Avoid infinite placement loop Avoid infinite placement loop when lineHeight is 0 Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant