Message ID | 20161006232917.52624-1-rodger.combs@gmail.com |
---|---|
State | Accepted |
Commit | ecb53e11014bf9d45a995390c6241c71d3e49ff9 |
Headers | show |
diff --git a/libavformat/segment.c b/libavformat/segment.c index 33a5cf0..55dcaf0 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"); } }