You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavf/hls: don't convert NULL options to empty strings; fixes HTTP CRLF warnings
This commit is contained in:
@@ -1300,7 +1300,7 @@ static int save_avio_options(AVFormatContext *s)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
while (*opt) {
|
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,
|
ret = av_dict_set(&c->avio_opts, *opt, buf,
|
||||||
AV_DICT_DONT_STRDUP_VAL);
|
AV_DICT_DONT_STRDUP_VAL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user