From 25e710c61ebf4c6909276a894a77ea26b02e59ce Mon Sep 17 00:00:00 2001 From: Jack Lau Date: Thu, 17 Jul 2025 20:10:22 +0800 Subject: [PATCH] avformat/whip: force NONBLOCK for rtp We need to ensure rtp sets NONBLOCK since the dtls handshake has potentially overriden the sockets mode. Signed-off-by: Jack Lau Signed-off-by: Timo Rothenpieler --- libavformat/whip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/whip.c b/libavformat/whip.c index 17a3cd0ea8..fd6de8503f 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -1495,6 +1495,7 @@ static int create_rtp_muxer(AVFormatContext *s) uint8_t *buffer = NULL; char buf[64]; WHIPContext *whip = s->priv_data; + whip->udp->flags |= AVIO_FLAG_NONBLOCK; const AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL); if (!rtp_format) {