NULL pointers ...
Originally committed as revision 3080 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -48,6 +48,9 @@ int match_ext(const char *filename, const char *extensions)
|
|||||||
const char *ext, *p;
|
const char *ext, *p;
|
||||||
char ext1[32], *q;
|
char ext1[32], *q;
|
||||||
|
|
||||||
|
if(!filename)
|
||||||
|
return 0;
|
||||||
|
|
||||||
ext = strrchr(filename, '.');
|
ext = strrchr(filename, '.');
|
||||||
if (ext) {
|
if (ext) {
|
||||||
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)
|
int filename_number_test(const char *filename)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
if(!filename)
|
||||||
|
return -1;
|
||||||
return get_frame_filename(buf, sizeof(buf), filename, 1);
|
return get_frame_filename(buf, sizeof(buf), filename, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user