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

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

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

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

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