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

ffmpeg.c:4086:1: start of procedure opt_vstats()
4084. }
4085. 
4086. static void opt_vstats (void)
      ^
4087. {
4088.     char filename[40];

ffmpeg.c:4089:5: 
4087. {
4088.     char filename[40];
4089.     time_t today2 = time(NULL);
          ^
4090.     struct tm *today = localtime(&today2);
4091. 

ffmpeg.c:4090:5: 
4088.     char filename[40];
4089.     time_t today2 = time(NULL);
4090.     struct tm *today = localtime(&today2);
          ^
4091. 
4092.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4092:5: 
4090.     struct tm *today = localtime(&today2);
4091. 
4092.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4093.              today->tm_sec);
4094.     opt_vstats_file(filename);
