Browse Source
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.
tags/n3.2
Rodger Combs
8 years ago
No known key found for this signature in database
GPG Key ID: E3E54DCDCD3CB843
1 changed files with
1 additions and
1 deletions
-
libavformat/segment.c
|
|
@@ -709,7 +709,7 @@ static int seg_init(AVFormatContext *s) |
|
|
|
if ((ret = segment_list_open(s)) < 0) |
|
|
|
goto fail; |
|
|
|
} 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"); |
|
|
|
} |
|
|
|
} |
|
|
|