Browse Source

segmenter: loose rindex()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
0556eee43f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/segment.c

+ 2
- 2
libavformat/segment.c View File

@@ -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…
Cancel
Save