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

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

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

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

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