diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2016-10-06 02:00:25 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2016-10-21 01:43:59 -0500 |
commit | ecb53e11014bf9d45a995390c6241c71d3e49ff9 (patch) | |
tree | 8ef0044d38e6b2763260f40e5d26fd11b2db5c34 /libavformat | |
parent | 798c6ecce50f26a53d48e2577a34fabe46b32eb9 (diff) | |
download | ffmpeg-ecb53e11014bf9d45a995390c6241c71d3e49ff9.tar.gz |
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.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 33a5cf0c9f..55dcaf0b9e 100644 --- a/libavformat/segment.c +++ b/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"); } } |