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

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

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

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

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