OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7613d3b
)
segmenter: loose rindex()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 17 Oct 2011 14:51:48 +0000
(16:51 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 17 Oct 2011 14:51:48 +0000
(16:51 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/segment.c
patch
|
blob
|
history
diff --git
a/libavformat/segment.c
b/libavformat/segment.c
index
e4c919f
..
80716bc
100644
(file)
--- 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();