]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avio.c
Move frame_size fallback from ff_get_audio_frame_size() to av_get_audio_frame_duration()
[ffmpeg] / libavformat / avio.c
index d71cfe8a62adde4abb0924ef7cdf93cb7d5df516..307b7036d9edeadeece922c9e7b4315c1ae251f2 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;
 }