ffmpeg.c:4067: error: Null Dereference
  pointer `today` last assigned on line 4065 could be null and is dereferenced at line 4067, column 69.

ffmpeg.c:4061:1: start of procedure opt_vstats()
4059. }
4060. 
4061. static void opt_vstats (void)
      ^
4062. {
4063.     char filename[40];

ffmpeg.c:4064:5: 
4062. {
4063.     char filename[40];
4064.     time_t today2 = time(NULL);
          ^
4065.     struct tm *today = localtime(&today2);
4066. 

ffmpeg.c:4065:5: 
4063.     char filename[40];
4064.     time_t today2 = time(NULL);
4065.     struct tm *today = localtime(&today2);
          ^
4066. 
4067.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4067:5: 
4065.     struct tm *today = localtime(&today2);
4066. 
4067.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4068.              today->tm_sec);
4069.     opt_vstats_file(filename);
