Fix warning if https protocol was requested but isn't available.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 12 Aug 2014 08:03:36 +0000 (10:03 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 12 Aug 2014 08:03:36 +0000 (10:03 +0200)
libavformat/avio.c

index d71cfe8..307b703 100644 (file)
@@ -261,7 +261,7 @@ 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("https:", filename, NULL))
+    if (av_strstart(filename, "https:", NULL))
         av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile with openssl or gnutls enabled.\n");
     return AVERROR_PROTOCOL_NOT_FOUND;
 }