OSDN Git Service

http: handle ICY in presence of chunked transfer encoding
authorwm4 <nfxjfg@googlemail.com>
Sun, 2 Mar 2014 19:26:19 +0000 (20:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Mar 2014 21:49:36 +0000 (22:49 +0100)
commit636273d3d4a8c42f51832e8bf83e566e875916bf
treeeefc02e9ac0447a48a0d578566d9b1c9fed19e23
parent9deecdf85f0c1cebcc0a157114bf6dbc02a0a120
http: handle ICY in presence of chunked transfer encoding

Some http servers send an ICY stream in combination with chunked
transfer encoding. This case was handled incorrectly by the ICY code:
instead of handling chunked encoding before anything ICY related, both
were mixed.

Fix this by separating the ICY code from normal http reading. Move the
normal http reading to a new function http_read_stream(), while
http_read() handles ICY on top of http_read_stream().

The server identified itself as: cloudflare-nginx

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/http.c