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) ...@@ -99,8 +99,8 @@ static int seg_write_header(AVFormatContext *s)
if (!seg->path) { if (!seg->path) {
char *t; char *t;
seg->path = av_strdup(s->filename); seg->path = av_strdup(s->filename);
t = rindex(seg->path, '.'); t = strrchr(seg->path, '.');
if (t) t = '\0'; if (t) *t = '\0';
} }
oc = avformat_alloc_context(); 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