diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 16:51:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 16:51:48 +0200 |
commit | 0556eee43ff92f9c726494f2af52ee7d7c1e9a07 (patch) | |
tree | efbae1713398fadcd34589754bdabe280c630038 | |
parent | 7613d3b8feab9ba6e11bff9a0ce0ea445d1be188 (diff) | |
download | ffmpeg-0556eee43ff92f9c726494f2af52ee7d7c1e9a07.tar.gz |
segmenter: loose rindex()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index e4c919f60d..80716bcf90 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -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(); |