aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-27 02:55:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-27 02:55:05 +0000
commit293ed23f1201d33a9510cf062213faa51ef620d4 (patch)
tree3989d76e0844d929533397f026d3e5b834b38303 /libavformat/utils.c
parent4b85a28f2766dd2896d311675e26ae0350b296ed (diff)
downloadffmpeg-293ed23f1201d33a9510cf062213faa51ef620d4.tar.gz
NULL pointers ...
Originally committed as revision 3080 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ee91b42f19..ff04435133 100644
--- 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);
}