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

ffmpeg.c:3737:1: start of procedure opt_vstats()
3735. }
3736. 
3737. static void opt_vstats (void)
      ^
3738. {
3739.     char filename[40];

ffmpeg.c:3740:5: 
3738. {
3739.     char filename[40];
3740.     time_t today2 = time(NULL);
          ^
3741.     struct tm *today = localtime(&today2);
3742. 

ffmpeg.c:3741:5: 
3739.     char filename[40];
3740.     time_t today2 = time(NULL);
3741.     struct tm *today = localtime(&today2);
          ^
3742. 
3743.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3743:5: 
3741.     struct tm *today = localtime(&today2);
3742. 
3743.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3744.              today->tm_sec);
3745.     opt_vstats_file(filename);
