Browse Source

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

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
tags/n4.2
Steven Liu 6 years ago
parent
commit
bee0fba7e6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/hls.c

+ 1
- 1
libavformat/hls.c View File

@@ -1473,7 +1473,7 @@ reload:
uint8_t *http_version_opt = NULL; uint8_t *http_version_opt = NULL;
int r = av_opt_get(v->input, "http_version", AV_OPT_SEARCH_CHILDREN, &http_version_opt); int r = av_opt_get(v->input, "http_version", AV_OPT_SEARCH_CHILDREN, &http_version_opt);
if (r >= 0) { 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); av_freep(&http_version_opt);
} }
} }


Loading…
Cancel
Save