ffmpeg | branch: master | Steven Liu <l...@chinaffmpeg.org> | Tue Jun  4 
15:58:35 2019 +0800| [bee0fba7e69f0cfa32bd588425529dfbcc8c9254] | committer: 
Steven Liu

avformat/hls: add http 2.0 version number compare for the http_multiple

Signed-off-by: Steven Liu <l...@chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bee0fba7e69f0cfa32bd588425529dfbcc8c9254
---

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

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 14f1bf8d44..e10cfeb414 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1473,7 +1473,7 @@ reload:
         uint8_t *http_version_opt = NULL;
         int r = av_opt_get(v->input, "http_version", AV_OPT_SEARCH_CHILDREN, 
&http_version_opt);
         if (r >= 0) {
-            c->http_multiple = strncmp((const char *)http_version_opt, "1.1", 
3) == 0;
+            c->http_multiple = (!strncmp((const char *)http_version_opt, 
"1.1", 3) || !strncmp((const char *)http_version_opt, "2.0", 3));
             av_freep(&http_version_opt);
         }
     }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to