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

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

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

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

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