[FFmpeg-cvslog] lavf/avio: Print https warning also for avio_find_protocol_name().

Carl Eugen Hoyos git at videolan.org
Tue Oct 1 20:53:35 EEST 2019


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Wed Sep 25 11:32:57 2019 +0200| [a650e8c8e957d81959282d9b6c1f20e87f385031] | committer: Carl Eugen Hoyos

lavf/avio: Print https warning also for avio_find_protocol_name().

Helps to fix ticket #8197.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a650e8c8e957d81959282d9b6c1f20e87f385031
---

 libavformat/avio.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 663789ec02..c1bad312cd 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -283,6 +283,9 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
         }
     }
     av_freep(&protocols);
+    if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL))
+        av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with "
+                                     "openssl, gnutls or securetransport enabled.\n");
 
     return NULL;
 }
@@ -297,10 +300,6 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
        return url_alloc_for_protocol(puc, p, filename, flags, int_cb);
 
     *puc = NULL;
-    if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL))
-        av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with "
-                                     "openssl, gnutls "
-                                     "or securetransport enabled.\n");
     return AVERROR_PROTOCOL_NOT_FOUND;
 }
 



More information about the ffmpeg-cvslog mailing list