From 99867fc0c42a2b0c9e07c9e4d4424bf7c454a844 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 12 Aug 2014 10:03:36 +0200 Subject: [PATCH] Fix warning if https protocol was requested but isn't available. --- libavformat/avio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index d71cfe8a62..307b7036d9 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -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; } -- 2.11.0