Skip to content

Commit 4d12ed5

Browse files
committed
avformat/tls_openssl: directly use mtu in TLSShared
Openssl 1.1.0 version haven't DTLS_get_data_mtu API Signed-off-by: Jack Lau <[email protected]>
1 parent bebe6e4 commit 4d12ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavformat/tls_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ static int tls_write(URLContext *h, const uint8_t *buf, int size)
994994
uc->flags |= h->flags & AVIO_FLAG_NONBLOCK;
995995

996996
if (c->tls_shared.is_dtls)
997-
size = FFMIN(size, DTLS_get_data_mtu(c->ssl));
997+
size = FFMIN(size, c->tls_shared.mtu);
998998

999999
ret = SSL_write(c->ssl, buf, size);
10001000
if (ret > 0)

0 commit comments

Comments
 (0)