diff mbox

[FFmpeg-devel] fix http 302 not compressed request , Ticket #6404

Message ID d4b285e8bde9b841d6dcf41e443dafc8@mail.kawaii.com
State New
Headers show

Commit Message

satbaby@kawaii.com July 20, 2017, 2:33 p.m. UTC
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'

Comments

Carl Eugen Hoyos Sept. 15, 2017, 11:40 a.m. UTC | #1
2017-07-20 16:33 GMT+02:00  <satbaby@kawaii.com>:
> 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'

Patch applied.

Thank you, Carl Eugen
diff mbox

Patch

From ed5195c98bafcaebbe9926b7afd1fac375f3a971 Mon Sep 17 00:00:00 2001
From: Jacek Jendrzej <satbaby@kawaii.com>
Date: Thu, 20 Jul 2017 13:46:46 +0200
Subject: [PATCH] reset compressed header flag, fix http 302 request

Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
---
 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