aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-06-20 21:41:02 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-06-20 21:41:02 +0000
commit45c611a95b8edac2d4a28b00f4bc6fa5701642cb (patch)
tree9be9ab66eb813b2fcacaa7375dd2d140a39fa1b2
parentf37246952a65c675c1e4a229ea95a0f82f32b084 (diff)
downloadffmpeg-45c611a95b8edac2d4a28b00f4bc6fa5701642cb.tar.gz
Reset chunksize back to zero (= no chunked encoding) after each new open
connection (e.g. a seek). This fixes the theoretical case where a server sends a file first using chunked encoding, and then using non-chunked encoding. Originally committed as revision 23665 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 9ba839a53c..cc7dc08f5a 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -152,7 +152,6 @@ static int http_open(URLContext *h, const char *uri, int flags)
}
h->priv_data = s;
s->filesize = -1;
- s->chunksize = -1;
s->is_chunked = 1;
s->off = 0;
s->init = 0;
@@ -331,6 +330,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
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;