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:
parent
e6d2c67cd0
commit
25e710c61e
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue