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

ffmpeg.c:3794:1: start of procedure opt_vstats()
3792. }
3793. 
3794. static void opt_vstats (void)
      ^
3795. {
3796.     char filename[40];

ffmpeg.c:3797:5: 
3795. {
3796.     char filename[40];
3797.     time_t today2 = time(NULL);
          ^
3798.     struct tm *today = localtime(&today2);
3799. 

ffmpeg.c:3798:5: 
3796.     char filename[40];
3797.     time_t today2 = time(NULL);
3798.     struct tm *today = localtime(&today2);
          ^
3799. 
3800.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3800:5: 
3798.     struct tm *today = localtime(&today2);
3799. 
3800.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3801.              today->tm_sec);
3802.     opt_vstats_file(filename);
