Replies: 2 comments
-
SRT subtitle format doesn't support multiple line breaks. A "blank line" means the start of a new subtitle. In fact, SubRip treats these two examples identically (stops after reading the blank/space-only line), because it strips whitespace first and then check for emptiness, so a line with only whitespaces is considered blank. These examples don't have a defined behavior, and different players will render them differently. See also #14271. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Pointing out ...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A line containing only spaces will terminate parsing of a single SRT subtitle unit, eg. if "_" is a space character ($20),
... will render as ...
... whereas an empty line with no whitespace ...
... will render as ...
https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/:/libavformat/srtdec.c
Beta Was this translation helpful? Give feedback.
All reactions