mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
segmenter: loose rindex()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7613d3b8fe
commit
0556eee43f
@ -99,8 +99,8 @@ static int seg_write_header(AVFormatContext *s)
|
||||
if (!seg->path) {
|
||||
char *t;
|
||||
seg->path = av_strdup(s->filename);
|
||||
t = rindex(seg->path, '.');
|
||||
if (t) t = '\0';
|
||||
t = strrchr(seg->path, '.');
|
||||
if (t) *t = '\0';
|
||||
}
|
||||
|
||||
oc = avformat_alloc_context();
|
||||
|
Loading…
Reference in New Issue
Block a user