Re: [FFmpeg-devel] [PATCH] avformat/http: fix chunked response w/ multiple_requests=1

2017-11-14 Thread Aman Gupta
On Tue, Nov 14, 2017 at 3:59 AM Ronald S. Bultje wrote: > Hi, > > On Mon, Nov 13, 2017 at 3:31 PM, Aman Gupta wrote: > >> From: Aman Gupta >> >> Currently if you use the multiple_requests=1 option and try to receive a >> chunked-encoded response, http_buf_read() will hang forever. >> >> After t

Re: [FFmpeg-devel] [PATCH] avformat/http: fix chunked response w/ multiple_requests=1

2017-11-14 Thread Ronald S. Bultje
Hi, On Mon, Nov 13, 2017 at 3:31 PM, Aman Gupta wrote: > From: Aman Gupta > > 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

[FFmpeg-devel] [PATCH] avformat/http: fix chunked response w/ multiple_requests=1

2017-11-13 Thread Aman Gupta
From: Aman Gupta 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(), wh