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

ffmpeg.c:3685:1: start of procedure opt_vstats()
3683. }
3684. 
3685. static void opt_vstats (void)
      ^
3686. {
3687.     char filename[40];

ffmpeg.c:3688:5: 
3686. {
3687.     char filename[40];
3688.     time_t today2 = time(NULL);
          ^
3689.     struct tm *today = localtime(&today2);
3690. 

ffmpeg.c:3689:5: 
3687.     char filename[40];
3688.     time_t today2 = time(NULL);
3689.     struct tm *today = localtime(&today2);
          ^
3690. 
3691.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3691:5: 
3689.     struct tm *today = localtime(&today2);
3690. 
3691.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3692.              today->tm_sec);
3693.     opt_vstats_file(filename);
