[FFmpeg-devel] [PATCH 3/4] lavf/hls: don't convert NULL options to empty strings; fixes HTTP CRLF warnings

Rodger Combs rodger.combs at gmail.com
Mon Sep 21 12:31:23 CEST 2015


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

diff --git a/libavformat/hls.c b/libavformat/hls.c
index c16c770..aa0e214 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1316,7 +1316,8 @@ 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_SEARCH_ALLOW_NULL, &buf) >= 0) {
             ret = av_dict_set(&c->avio_opts, *opt, buf,
                               AV_DICT_DONT_STRDUP_VAL);
             if (ret < 0)
-- 
2.5.1



More information about the ffmpeg-devel mailing list