[FFmpeg-devel] [PATCH]Be more verbose if the https protocol was not found

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 10 10:47:37 CEST 2013


Hi!

FFmpeg warns if no protocols are enabled, it may (also) be not obvious what 
the problem is when https is missing, see ticket #2765.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 73b2a29..5916e46 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -241,6 +241,8 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
             return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
     }
     *puc = NULL;
+    if (!strcmp("https", proto_str))
+        av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile with openssl or gnutls enabled.\n");
     return AVERROR_PROTOCOL_NOT_FOUND;
 }
 


More information about the ffmpeg-devel mailing list