Browse Source

lavf/hls: don't convert NULL options to empty strings; fixes HTTP CRLF warnings

tags/n3.0
Rodger Combs 9 years ago
parent
commit
f00ec7eb1b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/hls.c

+ 1
- 1
libavformat/hls.c View File

@@ -1300,7 +1300,7 @@ static int save_avio_options(AVFormatContext *s)
int ret = 0;

while (*opt) {
if (av_opt_get(s->pb, *opt, AV_OPT_SEARCH_CHILDREN, &buf) >= 0) {
if (av_opt_get(s->pb, *opt, AV_OPT_SEARCH_CHILDREN | AV_OPT_ALLOW_NULL, &buf) >= 0) {
ret = av_dict_set(&c->avio_opts, *opt, buf,
AV_DICT_DONT_STRDUP_VAL);
if (ret < 0)


Loading…
Cancel
Save