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

ffmpeg.c:4092:1: start of procedure opt_vstats()
4090. }
4091. 
4092. static void opt_vstats (void)
      ^
4093. {
4094.     char filename[40];

ffmpeg.c:4095:5: 
4093. {
4094.     char filename[40];
4095.     time_t today2 = time(NULL);
          ^
4096.     struct tm *today = localtime(&today2);
4097. 

ffmpeg.c:4096:5: 
4094.     char filename[40];
4095.     time_t today2 = time(NULL);
4096.     struct tm *today = localtime(&today2);
          ^
4097. 
4098.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4098:5: 
4096.     struct tm *today = localtime(&today2);
4097. 
4098.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4099.              today->tm_sec);
4100.     opt_vstats_file(filename);
