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

ffmpeg.c:3763:1: start of procedure opt_vstats()
3761. }
3762. 
3763. static void opt_vstats (void)
      ^
3764. {
3765.     char filename[40];

ffmpeg.c:3766:5: 
3764. {
3765.     char filename[40];
3766.     time_t today2 = time(NULL);
          ^
3767.     struct tm *today = localtime(&today2);
3768. 

ffmpeg.c:3767:5: 
3765.     char filename[40];
3766.     time_t today2 = time(NULL);
3767.     struct tm *today = localtime(&today2);
          ^
3768. 
3769.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3769:5: 
3767.     struct tm *today = localtime(&today2);
3768. 
3769.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3770.              today->tm_sec);
3771.     opt_vstats_file(filename);
