]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tls_openssl.c
lavf/isom: support for demuxing and remuxing of MPEG-H 3D Audio in MP4
[ffmpeg] / libavformat / tls_openssl.c
index 7ae71bdaf36d7ab01cefa15136cb2d370a70aecd..53f8363a12aa82f6b4006d43b4a4ef8a64f5a845 100644 (file)
@@ -70,8 +70,15 @@ int ff_openssl_init(void)
 {
     ff_lock_avformat();
     if (!openssl_init) {
+        /* OpenSSL 1.0.2 or below, then you would use SSL_library_init. If you are
+         * using OpenSSL 1.1.0 or above, then the library will initialize
+         * itself automatically.
+         * https://wiki.openssl.org/index.php/Library_Initialization
+         */
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
         SSL_library_init();
         SSL_load_error_strings();
+#endif
 #if HAVE_THREADS
         if (!CRYPTO_get_locking_callback()) {
             int i;