This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit c853beb7c3d239a12b037adb48a6930267148175 Author: Jack Lau <[email protected]> AuthorDate: Wed Sep 17 10:50:18 2025 +0800 Commit: Jack Lau <[email protected]> CommitDate: Tue Feb 10 09:32:56 2026 +0000 avformat/whip: remind user increase -buffer_size The udp buffer size might be too small to easily be full temporarily and return WSAEWOULDBLOCK. The udp code will handle the windows error code and convert it to AVERROR(EAGAIN). This issue just can be reproduced on windows. If sleep a interval and retry to send pkt when hit EAGAIN, it will increase latency, and appropriate interval is hard to define. So this patch just remind user increase the buffer size via -buffer_size to avoid this issue. Signed-off-by: Jack Lau <[email protected]> (cherry picked from commit ec0a04de0d46b6104a4d92570b2412df5fafb483) --- libavformat/whip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/whip.c b/libavformat/whip.c index 45e0b8b577..b914404f91 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -1817,8 +1817,10 @@ static int whip_write_packet(AVFormatContext *s, AVPacket *pkt) if (ret == AVERROR(EINVAL)) { av_log(whip, AV_LOG_WARNING, "Ignore failed to write packet=%dB, ret=%d\n", pkt->size, ret); ret = 0; + } else if (ret == AVERROR(EAGAIN)) { + av_log(whip, AV_LOG_ERROR, "UDP send blocked, please increase the buffer via -buffer_size\n"); } else - av_log(whip, AV_LOG_ERROR, "Failed to write packet, size=%d\n", pkt->size); + av_log(whip, AV_LOG_ERROR, "Failed to write packet, size=%d, ret=%d\n", pkt->size, ret); goto end; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
