You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavc/srtenc: do not add trailing line breaks with SubRip.
The SRT muxer is reponsible for separating events with two line breaks, there is no need to add more than necessary. Similarly, other muxers (such as Matroska) are not supposed to add line breaks at the end of the payload.
This commit is contained in:
@@ -218,7 +218,10 @@ static void srt_move_cb(void *priv, int x1, int y1, int x2, int y2,
|
|||||||
|
|
||||||
static void srt_end_cb(void *priv)
|
static void srt_end_cb(void *priv)
|
||||||
{
|
{
|
||||||
|
SRTContext *s = priv;
|
||||||
|
|
||||||
srt_stack_push_pop(priv, 0, 1);
|
srt_stack_push_pop(priv, 0, 1);
|
||||||
|
if (s->avctx->codec->id == AV_CODEC_ID_SRT)
|
||||||
srt_print(priv, "\r\n\r\n");
|
srt_print(priv, "\r\n\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
bd520f85238abf9df292374aed54681a
|
b7cb0eeb34af0da364e29b238f0634ae
|
||||||
|
Reference in New Issue
Block a user