diff mbox

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

Message ID 1510050836-28539-2-git-send-email-kjeyapal@akamai.com
State Superseded
Headers show

Commit Message

Jeyapal, Karthick Nov. 7, 2017, 10:33 a.m. UTC
---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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);