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.
static void srt_end_cb(void *priv)
{
+ SRTContext *s = priv;
+
srt_stack_push_pop(priv, 0, 1);
- srt_print(priv, "\r\n\r\n");
+ if (s->avctx->codec->id == AV_CODEC_ID_SRT)
+ srt_print(priv, "\r\n\r\n");
}
static const ASSCodesCallbacks srt_callbacks = {
-bd520f85238abf9df292374aed54681a
+b7cb0eeb34af0da364e29b238f0634ae