[FFmpeg-devel] [PATCH v2 2/3] libavformat/http: Handled multiple_requests option during write
Jeyapal, Karthick
kjeyapal at akamai.com
Tue Nov 21 07:16:05 EET 2017
Please ignore the below patch, and use the updated patch attached.
Forgot to reset the end_chunked_post variable in the below patch.
Sorry for the inconvenience caused.
Regards,
Karthick
On 11/21/17, 10:24 AM, "Karthick J" <kjeyapal at akamai.com> wrote:
---
libavformat/http.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/http.c b/libavformat/http.c
index 056d5f6..45c0e72 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -171,6 +171,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
const char *hoststr, const char *auth,
const char *proxyauth, int *new_location);
static int http_read_header(URLContext *h, int *new_location);
+static int http_shutdown(URLContext *h, int flags);
void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
{
@@ -306,6 +307,10 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
AVDictionary *options = NULL;
int ret;
+ ret = http_shutdown(h, h->flags);
+ if (ret < 0)
+ return ret;
+
s->chunkend = 0;
s->off = 0;
s->icy_data_read = 0;
--
1.9.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libavformat-http-Handled-multiple_requests-option-du.patch
Type: application/octet-stream
Size: 1198 bytes
Desc: 0002-libavformat-http-Handled-multiple_requests-option-du.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171121/75468051/attachment.obj>
More information about the ffmpeg-devel
mailing list