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

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

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

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

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