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

ffmpeg.c:3864:1: start of procedure opt_vstats()
3862. }
3863. 
3864. static void opt_vstats (void)
      ^
3865. {
3866.     char filename[40];

ffmpeg.c:3867:5: 
3865. {
3866.     char filename[40];
3867.     time_t today2 = time(NULL);
          ^
3868.     struct tm *today = localtime(&today2);
3869. 

ffmpeg.c:3868:5: 
3866.     char filename[40];
3867.     time_t today2 = time(NULL);
3868.     struct tm *today = localtime(&today2);
          ^
3869. 
3870.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3870:5: 
3868.     struct tm *today = localtime(&today2);
3869. 
3870.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3871.              today->tm_sec);
3872.     opt_vstats_file(filename);
