[FFmpeg-cvslog] r23665 - trunk/libavformat/http.c
rbultje
subversion
Sun Jun 20 23:41:02 CEST 2010
Author: rbultje
Date: Sun Jun 20 23:41:02 2010
New Revision: 23665
Log:
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.
Modified:
trunk/libavformat/http.c
Modified: trunk/libavformat/http.c
==============================================================================
--- trunk/libavformat/http.c Sun Jun 20 23:38:16 2010 (r23664)
+++ trunk/libavformat/http.c Sun Jun 20 23:41:02 2010 (r23665)
@@ -152,7 +152,6 @@ static int http_open(URLContext *h, cons
}
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, c
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;
More information about the ffmpeg-cvslog
mailing list