mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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.
This commit is contained in:
parent
798c6ecce5
commit
ecb53e1101
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user