lavf/segment: decide whether to rename based on list URI

This fixes the case of writing segments to local files, but the list
over a network protocol.
parent 798c6ecc
...@@ -709,7 +709,7 @@ static int seg_init(AVFormatContext *s) ...@@ -709,7 +709,7 @@ static int seg_init(AVFormatContext *s)
if ((ret = segment_list_open(s)) < 0) if ((ret = segment_list_open(s)) < 0)
goto fail; goto fail;
} else { } else {
const char *proto = avio_find_protocol_name(s->filename); const char *proto = avio_find_protocol_name(seg->list);
seg->use_rename = proto && !strcmp(proto, "file"); seg->use_rename = proto && !strcmp(proto, "file");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment