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

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

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

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

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