[FFmpeg-cvslog] avformat/whip: force NONBLOCK for rtp
Jack Lau
git at videolan.org
Thu Jul 17 15:35:09 EEST 2025
ffmpeg | branch: master | Jack Lau <jacklau1222 at qq.com> | Thu Jul 17 20:10:22 2025 +0800| [25e710c61ebf4c6909276a894a77ea26b02e59ce] | committer: Timo Rothenpieler
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 <jacklau1222 at qq.com>
Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25e710c61ebf4c6909276a894a77ea26b02e59ce
---
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) {
More information about the ffmpeg-cvslog
mailing list