segmenter: loose rindex()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-10-17 16:51:48 +02:00
parent 7613d3b8fe
commit 0556eee43f

View file

@ -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();