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

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

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

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

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