Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/2] lavf/webvttenc: avio_flush() output
@ 2025-06-09 20:59 Tomas Härdin
  2025-06-09 21:00 ` [FFmpeg-devel] [PATCH 2/2] lavf/srtenc: " Tomas Härdin
  2025-06-09 22:17 ` [FFmpeg-devel] [PATCH 1/2] lavf/webvttenc: " Andreas Rheinhardt
  0 siblings, 2 replies; 5+ messages in thread
From: Tomas Härdin @ 2025-06-09 20:59 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

[-- Attachment #1: Type: text/plain, Size: 113 bytes --]

Hi

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

/Tomas

[-- Attachment #2: 0001-lavf-webvttenc-avio_flush-output.patch --]
[-- Type: text/x-patch, Size: 698 bytes --]

From c5b1e1774e5d4e720295e6cb589eb7699e0ddaa3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <git@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


[-- Attachment #3: Type: text/plain, Size: 251 bytes --]

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-13 11:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-09 20:59 [FFmpeg-devel] [PATCH 1/2] lavf/webvttenc: avio_flush() output Tomas Härdin
2025-06-09 21:00 ` [FFmpeg-devel] [PATCH 2/2] lavf/srtenc: " Tomas Härdin
2025-06-09 22:17 ` [FFmpeg-devel] [PATCH 1/2] lavf/webvttenc: " Andreas Rheinhardt
2025-06-10 21:08   ` Marton Balint
2025-06-13 11:02   ` Tomas Härdin

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git