[FFmpeg-devel] [PATCH] avformat/http: fix chunked response w/ multiple_requests=1
Aman Gupta
ffmpeg at tmm1.net
Tue Nov 14 16:52:27 EET 2017
On Tue, Nov 14, 2017 at 3:59 AM Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi,
>
> On Mon, Nov 13, 2017 at 3:31 PM, Aman Gupta <ffmpeg at tmm1.net> wrote:
>
>> From: Aman Gupta <aman at tmm1.net>
>>
>> Currently if you use the multiple_requests=1 option and try to receive a
>> chunked-encoded response, http_buf_read() will hang forever.
>>
>> After this patch, EOF is emulated once a 0-byte final chunk is
>> received by setting a new flag. This flag is reset in
>> ff_http_do_new_request(),
>> which is used to make additional requests on the open socket.
>> ---
>> libavformat/http.c | 12 +++++++++++-
>> 1 file changed, 11 insertions(+), 1 deletion(-)
>
>
> I think this is OK. Do you have push access or should I merge for you?
>
I can push it, thanks.
Aman
> Ronald
>
More information about the ffmpeg-devel
mailing list