diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-06-04 15:58:35 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-06-14 10:53:35 +0800 |
commit | bee0fba7e69f0cfa32bd588425529dfbcc8c9254 (patch) | |
tree | a5dbc6d0fdcdc5a40f2afed0e4f9ec893313ec34 /libavformat/hls.c | |
parent | 5d0652916f2f514f077de6592407cd2c4bf3655c (diff) | |
download | ffmpeg-bee0fba7e69f0cfa32bd588425529dfbcc8c9254.tar.gz |
avformat/hls: add http 2.0 version number compare for the http_multiple
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |