[FFmpeg-devel] [PATCH 3/8] avformat/tls_openssl: remove now unnecessary define

Marvin Scholz epirat07 at gmail.com
Wed Jun 25 22:59:11 EEST 2025


This was used previously when multiple OpenSSL versions were supported
that required this to be handled differently.
---
 libavformat/tls_openssl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index 525b7f3701..25991c8c9d 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -567,11 +567,9 @@ static int url_bio_destroy(BIO *b)
     return 1;
 }
 
-#define GET_BIO_DATA(x) BIO_get_data(x)
-
 static int url_bio_bread(BIO *b, char *buf, int len)
 {
-    TLSContext *c = GET_BIO_DATA(b);
+    TLSContext *c = BIO_get_data(b);
     int ret = ffurl_read(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);
     if (ret >= 0)
         return ret;
@@ -587,7 +585,7 @@ static int url_bio_bread(BIO *b, char *buf, int len)
 
 static int url_bio_bwrite(BIO *b, const char *buf, int len)
 {
-    TLSContext *c = GET_BIO_DATA(b);
+    TLSContext *c = BIO_get_data(b);
     int ret = ffurl_write(c->tls_shared.is_dtls ? c->tls_shared.udp : c->tls_shared.tcp, buf, len);
     if (ret >= 0)
         return ret;
-- 
2.39.5 (Apple Git-154)



More information about the ffmpeg-devel mailing list