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

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

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

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

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