From patchwork Thu Oct 21 14:09:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ekibun X-Patchwork-Id: 31203 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp647760ioa; Thu, 21 Oct 2021 07:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/U3gc34PgrMSFJd79fqi7SAhJSV9WMllPjvTvU6fsrEuwLbVMAEZd9SoF52Nm23RSykV9 X-Received: by 2002:a17:906:eda6:: with SMTP id sa6mr7442081ejb.443.1634825383341; Thu, 21 Oct 2021 07:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634825383; cv=none; d=google.com; s=arc-20160816; b=UfgThaZb0JWoVyV+F7MgJITPsMifNnb1N5y6rpEvvzBPPoNAuTEPf/WtAjbMmHc8mO gv4uHkNaivcXMySmAXGz3fsXRTb/jSEAIkh36Zw1vBAuoV1s21JqIFtlumQ7YL3SywEn UNesvvtSoCfzRT8PyybgjmcgNxorBES7KIIK87xUbE37evwCyTSfjduGE9UCcb53kPOu LicKi+7gq4sZK8cyk4nOfnJTFpPySX07Ol6CVeKKjTUgmUihesLYgvCdeLq61Z6M0hlF tDsxwnrdp07aRb5BBs3taANCNorqc7eXEUq7zSplNZL/bFJlvf0Bd7rbS2gPAJa1mA/p qq+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=UDMRmxdD6AEBqq5zPpHuI9UIb4gKoVtENeZFTOsyUHI=; b=ePRLjvSuNApjhugKtw6dMGJY/bsdQKIMWYV9KKfAC519p8Grro5VP9/p2INHO4h6+s ycKuGGCzQLOdtAk2DsEKyozCgdSjfa+1PImbEfbLSejPn0+mbyVSAT8/os9Snq4VNIq6 4Cj30EVH4rG3WVZ/XEgDdgeSxXp49Mfs54Snavg166Hvj/eno8+YriwUB/I+Q4mJg7oW WsCydSrSe/AbfGK2R/Huka6FpBycVIw6TbI9U40n9X+2xV478/pbfgfnTXoK41sUiUve +vzvTx6kUUXZbOZXpi9jiFBYNxSqb0djdtvrneMtTIwmc4ftRqN/qXB6RHPJGQDygBR9 3JEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=oYn4Nk3W; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id c14si9869054ede.501.2021.10.21.07.09.42; Thu, 21 Oct 2021 07:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=oYn4Nk3W; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3233968A47F; Thu, 21 Oct 2021 17:09:30 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9642B689E3A for ; Thu, 21 Oct 2021 17:09:23 +0300 (EEST) Received: by mail-pf1-f170.google.com with SMTP id d5so783696pfu.1 for ; Thu, 21 Oct 2021 07:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ssuMIrOGd5uWkSAxLD7dHhIyhayeacd2YSRWqR6NlPM=; b=oYn4Nk3WR46UckEZg0L+tPiWCmSe29kkPcrcaJkvV9nqGADgMzIAqgyK2e66q2dfpE EkjOlFoOEJWPLtzLbBQQGTrT7S79c6Yzo+Lv9eILQTQaqj4yZAXdcAbHF0nJGBu9N9wl PuD7Zv9LJ/bwn06XnjUq7RDGEeYYRbwn9VB9gjGMF3SlZQJbvWLLCqlJXezMrQDSiuhB A1XlBnXQ0zqGGlof08SDtfey3wNVbkg2vseNVy2JDkpkM/OItb/OVt0N3+kiqDZXAqfB tXkzbwVnaHC3M5FnKUHPuz604ugMIaqi9WuQeBDqEeWx1NbR4sYGkf00w7qNqRhd9fft p+Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ssuMIrOGd5uWkSAxLD7dHhIyhayeacd2YSRWqR6NlPM=; b=bEbfQp6v9FE7ajxC/mu+V6FT9Cm87WwS4kHQ2J9MyvqsKZPOnjyZD5Qo9ZjSjeE/jV xydAbJa/1inap3HW3gKAl9EYVQv55irxgXrwM6tE5HjYydjvBUX6P7SDuQGE7Ho/NSvt iqTLjIlKN/RFG0DK2zyYp7PQDxVMAqV8TLVtclMM/n8hNY6ycpG3oOh2j4webdAtXynS KWvpWGqdwmh12ifAM9ldFmOGjueLE+O8ITvHcUEhuWrFCoBes0VHRhjbJEMOZsgLYbwQ V+L7nJS5AVjwqlsznQB5J9JoZL9a3zbitP5QxGnyo255fTLW5e1pev2MflLrPkw6b2JY Bayw== X-Gm-Message-State: AOAM530xXdwD4po8bfh/jkOM+Wo3MgNeRDbi26go2PsYCH3EYtSWzt0u 6I0Q4BDwz6rO2m6iARIkNC4JPSZk8IUMmnNF X-Received: by 2002:a63:8c19:: with SMTP id m25mr4572731pgd.164.1634825361619; Thu, 21 Oct 2021 07:09:21 -0700 (PDT) Received: from LAPTOP-S97QJC3H.localdomain ([52.253.116.247]) by smtp.gmail.com with ESMTPSA id c8sm5858639pgn.72.2021.10.21.07.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 07:09:21 -0700 (PDT) From: ekibun To: ffmpeg-devel@ffmpeg.org Date: Thu, 21 Oct 2021 22:09:09 +0800 Message-Id: <20211021140909.724-2-soekibun@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211021140909.724-1-soekibun@gmail.com> References: <20211021140909.724-1-soekibun@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/hls: Do not check protocol on hls without network. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: ekibun Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: BKy6AvED3C6L --- libavformat/hls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index 52a031ed..55fa831b 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -637,6 +637,7 @@ static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, int ret; int is_http = 0; +#if CONFIG_HTTP_PROTOCOL if (av_strstart(url, "crypto", NULL)) { if (url[6] == '+' || url[6] == ':') proto_name = avio_find_protocol_name(url + 7); @@ -675,6 +676,7 @@ static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, ; else if (strcmp(proto_name, "file") || !strncmp(url, "file,", 5)) return AVERROR_INVALIDDATA; +#endif av_dict_copy(&tmp, *opts, 0); av_dict_copy(&tmp, opts2, 0);