diff options
author | Jack Lau <jacklau1222@qq.com> | 2025-07-17 20:10:22 +0800 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2025-07-17 14:33:47 +0200 |
commit | 25e710c61ebf4c6909276a894a77ea26b02e59ce (patch) | |
tree | db4b3a7296a046d5263be02e54dafa3af0c8bbfc | |
parent | e6d2c67cd096f26a4e1900ae77a784dbbd3b5f0f (diff) | |
download | ffmpeg-25e710c61ebf4c6909276a894a77ea26b02e59ce.tar.gz |
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@qq.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
-rw-r--r-- | libavformat/whip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |