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

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

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

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

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