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

ffmpeg.c:3692:1: start of procedure opt_vstats()
3690. }
3691. 
3692. static void opt_vstats (void)
      ^
3693. {
3694.     char filename[40];

ffmpeg.c:3695:5: 
3693. {
3694.     char filename[40];
3695.     time_t today2 = time(NULL);
          ^
3696.     struct tm *today = localtime(&today2);
3697. 

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

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