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

ffmpeg.c:4082:1: start of procedure opt_vstats()
4080. }
4081. 
4082. static void opt_vstats (void)
      ^
4083. {
4084.     char filename[40];

ffmpeg.c:4085:5: 
4083. {
4084.     char filename[40];
4085.     time_t today2 = time(NULL);
          ^
4086.     struct tm *today = localtime(&today2);
4087. 

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

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