Commit 0556eee4 authored by Michael Niedermayer's avatar Michael Niedermayer

segmenter: loose rindex()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7613d3b8
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment