From patchwork Thu Sep 14 21:27:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 5144 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp1136419jaa; Thu, 14 Sep 2017 14:27:48 -0700 (PDT) X-Received: by 10.223.183.17 with SMTP id l17mr18477124wre.139.1505424468238; Thu, 14 Sep 2017 14:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505424468; cv=none; d=google.com; s=arc-20160816; b=ctDy/YitX4H8w5nucTm91/sEIrifQqXs9ajKYKu2MWvplA09kRRPz8BSQuUMXghrDt DtPwGIX0gLafM6ezGRAj6F0CO3H+yxQcyFSerTq8G6S6aycFTci8M3EZ9z3LOjFPPml2 xzx2csQSTt4us2lx/lUv5vn1tWIpcrLNh2wzpaZArdOvvTB5nUIp8jfz6PJTv278nWS4 dqyN4iQq2Qmk0eHbqACB+uzhq6Sw5yyuYP/7dgQQDF7DTSFzNdWHqVRbF0LM0n7sd4Eu fLpoDdoKAHm4lteggT73mPmz009zwmd8GJz7adpeIQiHOjqdNhMas/9yDh6uYa2dEvIg mNzQ== 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:to :message-id:date:from:mime-version:dkim-signature:delivered-to :arc-authentication-results; bh=Qo80Q+GAdQUn55cMeK40MDwojnofkVQNL6goftWtUTw=; b=NsDucoEOaf2i0/fcYGblOp8taDu6qhzTICCW9AqLNaPcpCrCEHt1YVHeu5mSA1kIZS 21raUnxOjJAR8+Ql4IUkkY+Cjgk0jrbgzsUWjZGrfI5Ue9DDbV1pOXEK/5gRagsDwiNR Owkqkc68Uf8Ffr2SxhgUZh9vgH0/BSw+RvfKoT59sFTvBfI2VUkc7km4AdeDvMIL/nzw DchoscPuPm3hCT+7zvW6kU7ZISSughis+XIX7Tqa2/P5KM2mEuke+iQOFwuHuaUg94MZ Y3/Qol3c49wCT2k/NdUItn35dXn6QxLNw1hFCuhe3vqhzM2zbVh7MDPsbi6oLBS6P9I9 QEtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lWdNmc4R; 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=NONE 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 t67si700839wmb.95.2017.09.14.14.27.43; Thu, 14 Sep 2017 14:27:48 -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=20161025 header.b=lWdNmc4R; 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=NONE 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 E9284689E21; Fri, 15 Sep 2017 00:27:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f182.google.com (mail-io0-f182.google.com [209.85.223.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 343F0689D9A for ; Fri, 15 Sep 2017 00:27:30 +0300 (EEST) Received: by mail-io0-f182.google.com with SMTP id n69so3924053ioi.5 for ; Thu, 14 Sep 2017 14:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JDjTdcsQlzgq4QbR1GHfQ4q0bEU9QNP8UEMU9BfN7dM=; b=lWdNmc4Rt4iOyV+aLJ8yrseLEgJhqyjoOps1rFDJHsy3ADtl8buDkJutVreXFZNM6Y mjG4/fqfLPniObPPDv7nhuzv5R7Y0wh1G3K4tPZDX28yJaijhg2qrULOivQip4L51xua akNoIoAhac4rAZCNljXRWYXxqoapzNTzvQOSGgxRz+s0A1naMONgw+SAyNXQDGSMmawt lbhuB4VfqJKMWW0Hjj9ENB0lBnbyDfK7TLIrhS2bpKT9vDwrR+8pTPOT1m36O+xHtX8g 0Cwcluto9x3B34DrFfEFRuzFm7bCskTNLSQcCFSmhNY79qEb+m415gIew6aW5J96DYUu nQBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JDjTdcsQlzgq4QbR1GHfQ4q0bEU9QNP8UEMU9BfN7dM=; b=k6C4cfokLoPulGhrcPLJM/vCxY7pYVri+ORiY/JWDcQfAy/SPstLMloyF86880vqKJ nAmefCGyP7LGtVvviwvNsihJDcfREPFHjE0FiYvOP8n1Ojzox/uqZ2pqL+L3nM4YoRIz +HtCnOcdoSXeGkAre5VgafTShjjjpo2iijgXWoGWeW4GdMn8uWyj0apwAc448ZSwRT9w GWcs7VD96o60PUeybT3wPWTBMV3Tx3vcbK4hcar7COTh8vczexKQ44PKY9OrLEjMrP59 PNT9DjmJDAAARXk/ISqFRr83cJcqvUZAH4xVA24LRCjUHtJM5Y3HMiwqLfa7amgaitvl 9c6Q== X-Gm-Message-State: AHPjjUgcxmDGUFVmkOc3S/9O/p3RZ8wNRloSXlECbLQx1PAaAK9BKQQk k5jStfR8XgzqhorakyPQy/vYYUwP/LH7VVKZCLE= X-Google-Smtp-Source: AOwi7QAQ7+FClTJaWnODKa/GmO9MJkmHAz3T85q6THZnsOkhX0jcBOyd/DhfgSZpnofHVAHY1lJe8/a4UiOr2W/Hn/Q= X-Received: by 10.107.128.79 with SMTP id b76mr5440230iod.109.1505424455869; Thu, 14 Sep 2017 14:27:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.36.72 with HTTP; Thu, 14 Sep 2017 14:27:15 -0700 (PDT) From: Carl Eugen Hoyos Date: Thu, 14 Sep 2017 23:27:15 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]lavf/http: Reset encoding on redirect 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" Hi! Attached patch fixes ticket #6666. Please comment, Carl Eugen From 479e3b2097a73a918f0c62cb6e3d661f9e71c5d0 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 14 Sep 2017 23:21:53 +0200 Subject: [PATCH] lavf/http: Reset encoding on redirect. Fixes ticket #6666. --- libavformat/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/http.c b/libavformat/http.c index 30890bb..d835f22 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -287,6 +287,7 @@ redo: memset(&s->auth_state, 0, sizeof(s->auth_state)); attempts = 0; location_changed = 0; + s->compressed = 0; goto redo; } return 0; -- 1.7.10.4