From f00ec7eb1b94b31ffdb11a54adda339f08ace245 Mon Sep 17 00:00:00 2001
From: Rodger Combs <rodger.combs@gmail.com>
Date: Sun, 20 Sep 2015 21:50:22 -0500
Subject: [PATCH] lavf/hls: don't convert NULL options to empty strings; fixes
 HTTP CRLF warnings

---
 libavformat/hls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index ebd3f951d0f..ff95519fb3b 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)
-- 
GitLab