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.
pull/238/merge
Rodger Combs 8 years ago
parent 798c6ecce5
commit ecb53e1101
No known key found for this signature in database
GPG Key ID: E3E54DCDCD3CB843
  1. 2
      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");
}
}

Loading…
Cancel
Save