From c879c0b8a810a53e1d424edb129a1aba2df1b9d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <[email protected]>
Date: Mon, 9 Jun 2025 22:03:12 +0200
Subject: [PATCH 2/2] lavf/srtenc: avio_flush() output
This make streaming srt possible
---
libavformat/srtenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index a8a16a7f50..172fdc9194 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -87,6 +87,7 @@ static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
avio_write(avf->pb, pkt->data, pkt->size);
avio_write(avf->pb, "\n\n", 2);
+ avio_flush(avf->pb);
srt->index++;
return 0;
}
--
2.47.2
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".