From patchwork Thu Jul 20 14:33:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: satbaby@kawaii.com X-Patchwork-Id: 4386 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp2230451vsb; Thu, 20 Jul 2017 07:33:54 -0700 (PDT) X-Received: by 10.223.153.234 with SMTP id y97mr7180111wrb.41.1500561234653; Thu, 20 Jul 2017 07:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500561234; cv=none; d=google.com; s=arc-20160816; b=uLSmbIz21sLvuDcv0hCtA/YnITdr4R0DnLibLldUOwYISec/ve0RlW28HSo8q0b8uw bjMCK/OcnnfhEvZBzsBkchV/7j38UnhVWOFLU+HXheNvc+/7Ov0oBkfoCSMYnNFSo2mb nG+IISLWgCxldkSPAEul9qtJ65CT11xTpDMN6nXIT2CPYW+ok5dHgMCSoVCo5M5Yj71p rufCUEwpxtb0IA3tOUezxyd0LWr34N8LUR9zGBeMJ7SE2zmGMw7mGaBW5zyl4Yg0YOu0 NA7WEv01G6jKhqeKZ7yCxNje3moWa1dxuy4MTetOgzkynjDM9dM1wEPuBVRIn7raMmdC fAfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:user-agent :message-id:from:date:mime-version:to:delivered-to :arc-authentication-results; bh=DhmCw3c1kNNj2kUZqmYfh9Ka3q3wsN0czhze8uy++3k=; b=yIK4qe3Z4lGL+ejFtsWGWtxIXSD/K6O8rT9rfBsJJvwUlmOnYCIbK1R1ceGtG6iDCO 4058xtYfoZR89ipr4VoHqxq54LuqFy6UTCL+h6El6Zyr38DV2dfUJz79DO8SZaaJPaiD uRmWvZuL6lKKYhceMP9FXh5E6uYE47rwl3oS+eZywe94etgrRfVm6OzzXAGQxVpX0Uas 9wBAUalUS3k8wQv4tXLyvDjB4GY/7kRdRFSi859UG0Z7ZrNZaiQL9iukwiB1e2U+LMb9 v/yd46xLhL+vzVv5WIte1FczE6uOFUtbsemhByMMBexQ41MdoFeON75nCtA9sMbqjvvu 44vQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id v1si2409151wrb.436.2017.07.20.07.33.54; Thu, 20 Jul 2017 07:33:54 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0B1BE68973A; Thu, 20 Jul 2017 17:33:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.kawaii.com (mail.kawaii.com [52.192.208.105]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6AF18689200 for ; Thu, 20 Jul 2017 17:33:37 +0300 (EEST) Received: by mail.kawaii.com (Postfix, from userid 33) id 7E7F7436F2; Thu, 20 Jul 2017 14:33:42 +0000 (UTC) To: ffmpeg-devel@ffmpeg.org X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Date: Thu, 20 Jul 2017 16:33:42 +0200 From: satbaby@kawaii.com Message-ID: X-Sender: satbaby@kawaii.com User-Agent: Roundcube Webmail/1.1.2 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH] fix http 302 not compressed request , Ticket #6404 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This fixt for me redirect error: [http @ 0x65ac50] inflate return value: -3, unknown compression method after : [http @ 0x65ac50] header='HTTP/1.1 302 Moved Temporarily' From ed5195c98bafcaebbe9926b7afd1fac375f3a971 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 20 Jul 2017 13:46:46 +0200 Subject: [PATCH] reset compressed header flag, fix http 302 request Signed-off-by: Jacek Jendrzej --- libavformat/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/http.c b/libavformat/http.c index 30890bb7aa..f25977ab1f 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1248,6 +1248,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path, s->willclose = 0; s->end_chunked_post = 0; s->end_header = 0; + s->compressed = 0; if (post && !s->post_data && !send_expect_100) { /* Pretend that it did work. We didn't read any header yet, since * we've still to send the POST data, but the code calling this -- 2.13.3