Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: "Tomas Härdin" <git@haerdin.se>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: [FFmpeg-devel] [PATCH 2/2] lavf/srtenc: avio_flush() output
Date: Mon, 09 Jun 2025 23:00:03 +0200
Message-ID: <62d3fbb670d67707e8e5ad3a8e971adf63a3c476.camel@haerdin.se> (raw)
In-Reply-To: <ee9adf0daa8b01992a6aaf4634a61ff8d22017f7.camel@haerdin.se>

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



[-- Attachment #2: 0002-lavf-srtenc-avio_flush-output.patch --]
[-- Type: text/x-patch, Size: 708 bytes --]

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


[-- 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".

  reply	other threads:[~2025-06-09 21:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-09 20:59 [FFmpeg-devel] [PATCH 1/2] lavf/webvttenc: " Tomas Härdin
2025-06-09 21:00 ` Tomas Härdin [this message]
2025-06-09 22:17 ` Andreas Rheinhardt
2025-06-10 21:08   ` Marton Balint
2025-06-13 11:02   ` Tomas Härdin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=62d3fbb670d67707e8e5ad3a8e971adf63a3c476.camel@haerdin.se \
    --to=git@haerdin.se \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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