ffmpeg-bb/tests/ref/fate/ffmpeg-fix_sub_duration_heartbeat
Kacper Michajłow 5c95e8e3a6 avcodec/srtenc: don't produce SRT files with mixed line endings
Initially, avcodec/srtenc.c was outputting CRLF [1]. Later, a real SRT
muxer was added [2], which outputs LF. The original srtenc.c was
converted to use the muxer [3], changing its output to LF, except for
newline characters within subtitle text.

Fix this to avoid producing SRT files with mixed line endings.

[1] 8e43b6fed9
[2] 9e63c30daa
[3] 55180b3299

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
2025-08-03 17:27:35 +00:00

36 lines
822 B
Plaintext

1
00:00:00,968 --> 00:00:01,168
<font face="Monospace">{\an7}(</font>
2
00:00:01,168 --> 00:00:01,368
<font face="Monospace">{\an7}(<i> inaudibl</i></font>
3
00:00:01,368 --> 00:00:01,568
<font face="Monospace">{\an7}(<i> inaudible radio chat</i></font>
4
00:00:01,568 --> 00:00:02,002
<font face="Monospace">{\an7}(<i> inaudible radio chatter</i> )</font>
5
00:00:02,002 --> 00:00:03,103
<font face="Monospace">{\an7}(<i> inaudible radio chatter</i> )</font>
6
00:00:03,103 --> 00:00:03,303
<font face="Monospace">{\an7}(<i> inaudible radio chatter</i> )
>></font>
7
00:00:03,303 --> 00:00:03,503
<font face="Monospace">{\an7}(<i> inaudible radio chatter</i> )
>> Safety rema</font>
8
00:00:03,504 --> 00:00:03,704
<font face="Monospace">{\an7}(<i> inaudible radio chatter</i> )
>> Safety remains our numb</font>