diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2015-09-20 21:50:22 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2015-10-09 04:12:57 -0500 |
commit | f00ec7eb1b94b31ffdb11a54adda339f08ace245 (patch) | |
tree | 10e75e78f7a4fa08b2fde3bc2f6f2b683379bb71 | |
parent | 0562f959021514a6697601e5b3e0690f41c06f4e (diff) | |
download | ffmpeg-f00ec7eb1b94b31ffdb11a54adda339f08ace245.tar.gz |
lavf/hls: don't convert NULL options to empty strings; fixes HTTP CRLF warnings
-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 ebd3f951d0..ff95519fb3 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -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) |