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

ffmpeg.c:3631:1: start of procedure opt_vstats()
3629. }
3630. 
3631. static void opt_vstats (void)
      ^
3632. {
3633.     char filename[40];

ffmpeg.c:3634:5: 
3632. {
3633.     char filename[40];
3634.     time_t today2 = time(NULL);
          ^
3635.     struct tm *today = localtime(&today2);
3636. 

ffmpeg.c:3635:5: 
3633.     char filename[40];
3634.     time_t today2 = time(NULL);
3635.     struct tm *today = localtime(&today2);
          ^
3636. 
3637.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3637:5: 
3635.     struct tm *today = localtime(&today2);
3636. 
3637.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3638.              today->tm_sec);
3639.     opt_vstats_file(filename);
