[FFmpeg-cvslog] lavf/segment: decide whether to rename based on list URI
Rodger Combs
git at videolan.org
Fri Oct 21 09:56:22 EEST 2016
ffmpeg | branch: master | Rodger Combs <rodger.combs at gmail.com> | Thu Oct 6 02:00:25 2016 -0500| [ecb53e11014bf9d45a995390c6241c71d3e49ff9] | committer: Rodger Combs
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ecb53e11014bf9d45a995390c6241c71d3e49ff9
---
libavformat/segment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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");
}
}
More information about the ffmpeg-cvslog
mailing list