Hi

These two patches are a bit of a warmup for another pass at streamable
subtitles. FATE passes.

/Tomas
From c5b1e1774e5d4e720295e6cb589eb7699e0ddaa3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <g...@haerdin.se>
Date: Fri, 16 May 2025 14:07:00 +0200
Subject: [PATCH 1/2] lavf/webvttenc: avio_flush() output

This makes streaming webvtt possible
---
 libavformat/webvttenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c
index e71a6224ae..69f0477a3d 100644
--- a/libavformat/webvttenc.c
+++ b/libavformat/webvttenc.c
@@ -93,6 +93,7 @@ static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
 
     avio_write(pb, pkt->data, pkt->size);
     avio_printf(pb, "\n");
+    avio_flush(pb);
 
     return 0;
 }
-- 
2.47.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to