| Index: source/patched-ffmpeg-mt/libavformat/http.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavformat/http.c (revision 50820)
|
| +++ source/patched-ffmpeg-mt/libavformat/http.c (working copy)
|
| @@ -53,7 +53,6 @@
|
|
|
| static int http_connect(URLContext *h, const char *path, const char *hoststr,
|
| const char *auth, int *new_location);
|
| -static int http_write(URLContext *h, const uint8_t *buf, int size);
|
|
|
| void ff_http_set_headers(URLContext *h, const char *headers)
|
| {
|
| @@ -153,7 +152,6 @@
|
| }
|
| h->priv_data = s;
|
| s->filesize = -1;
|
| - s->chunksize = -1;
|
| s->is_chunked = 1;
|
| s->off = 0;
|
| s->init = 0;
|
| @@ -323,7 +321,7 @@
|
| authstr ? authstr : "");
|
|
|
| av_freep(&authstr);
|
| - if (http_write(h, s->buffer, strlen(s->buffer)) < 0)
|
| + if (url_write(s->hd, s->buffer, strlen(s->buffer)) < 0)
|
| return AVERROR(EIO);
|
|
|
| /* init input buffer */
|
| @@ -332,6 +330,7 @@
|
| s->line_count = 0;
|
| s->off = 0;
|
| s->filesize = -1;
|
| + s->chunksize = -1;
|
| if (post) {
|
| /* always use chunked encoding for upload data */
|
| s->chunksize = 0;
|
|
|