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

ffmpeg.c:3997:1: start of procedure opt_vstats()
3995. }
3996. 
3997. static void opt_vstats (void)
      ^
3998. {
3999.     char filename[40];

ffmpeg.c:4000:5: 
3998. {
3999.     char filename[40];
4000.     time_t today2 = time(NULL);
          ^
4001.     struct tm *today = localtime(&today2);
4002. 

ffmpeg.c:4001:5: 
3999.     char filename[40];
4000.     time_t today2 = time(NULL);
4001.     struct tm *today = localtime(&today2);
          ^
4002. 
4003.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4003:5: 
4001.     struct tm *today = localtime(&today2);
4002. 
4003.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4004.              today->tm_sec);
4005.     opt_vstats_file(filename);
