]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hls: add http 2.0 version number compare for the http_multiple
authorSteven Liu <lq@chinaffmpeg.org>
Tue, 4 Jun 2019 07:58:35 +0000 (15:58 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Fri, 14 Jun 2019 02:53:35 +0000 (10:53 +0800)
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hls.c

index 14f1bf8d449683825d5db601bc35ba90e342a7b0..e10cfeb41411d410174f3cab14eaa7684214a321 100644 (file)
@@ -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);
         }
     }