You've already forked FFmpeg
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:
committed by
Timo Rothenpieler
parent
e6d2c67cd0
commit
25e710c61e
@ -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) {
|
||||
|
Reference in New Issue
Block a user