1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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>
This commit is contained in:
Jack Lau
2025-07-17 20:10:22 +08:00
committed by Timo Rothenpieler
parent e6d2c67cd0
commit 25e710c61e

View File

@ -1495,6 +1495,7 @@ static int create_rtp_muxer(AVFormatContext *s)
uint8_t *buffer = NULL; uint8_t *buffer = NULL;
char buf[64]; char buf[64];
WHIPContext *whip = s->priv_data; WHIPContext *whip = s->priv_data;
whip->udp->flags |= AVIO_FLAG_NONBLOCK;
const AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL); const AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
if (!rtp_format) { if (!rtp_format) {