Add support for disabling chunked transfer encoding for the http protocol

Patch by Josh Allmann, josh dot allmann at gmail

Originally committed as revision 23531 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Josh Allmann
2010-06-08 11:48:03 +00:00
committed by Martin Storsjö
parent b995a6a84f
commit f2b9b19fad
2 changed files with 25 additions and 5 deletions

View File

@@ -39,4 +39,12 @@
*/
void ff_http_set_headers(URLContext *h, const char *headers);
/**
* Enables or disables chunked transfer encoding. (default is enabled)
*
* @param h URL context for this HTTP connection
* @param is_chunked 0 to disable chunking, nonzero otherwise.
*/
void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked);
#endif /* AVFORMAT_HTTP_H */