[FFmpeg-devel] [PATCH 2/3] libavformat/http: Handled multiple_requests option during write

Karthick J kjeyapal at akamai.com
Tue Nov 7 12:33:55 EET 2017


---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index bd9148f..0854c01 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1527,7 +1527,7 @@ static int http_write(URLContext *h, const uint8_t *buf, int size)
 
     /* silently ignore zero-size data since chunk encoding that would
      * signal EOF */
-    if (size > 0) {
+    if (size > 0 || s->multiple_requests) {
         /* upload data using chunked encoding */
         snprintf(temp, sizeof(temp), "%x\r\n", size);
 
-- 
1.9.1



More information about the ffmpeg-devel mailing list