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:
4b85a28
)
NULL pointers ...
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 27 Apr 2004 02:55:05 +0000
(
02:55
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 27 Apr 2004 02:55:05 +0000
(
02:55
+0000)
Originally committed as revision 3080 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
ee91b42
..
ff04435
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-48,6
+48,9
@@
int match_ext(const char *filename, const char *extensions)
const char *ext, *p;
char ext1[32], *q;
+ if(!filename)
+ return 0;
+
ext = strrchr(filename, '.');
if (ext) {
ext++;
@@
-264,6
+267,8
@@
void fifo_write(FifoBuffer *f, uint8_t *buf, int size, uint8_t **wptr_ptr)
int filename_number_test(const char *filename)
{
char buf[1024];
+ if(!filename)
+ return -1;
return get_frame_filename(buf, sizeof(buf), filename, 1);
}