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

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

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

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

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