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

ffmpeg.c:3801:1: start of procedure opt_vstats()
3799. }
3800. 
3801. static void opt_vstats (void)
      ^
3802. {
3803.     char filename[40];

ffmpeg.c:3804:5: 
3802. {
3803.     char filename[40];
3804.     time_t today2 = time(NULL);
          ^
3805.     struct tm *today = localtime(&today2);
3806. 

ffmpeg.c:3805:5: 
3803.     char filename[40];
3804.     time_t today2 = time(NULL);
3805.     struct tm *today = localtime(&today2);
          ^
3806. 
3807.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3807:5: 
3805.     struct tm *today = localtime(&today2);
3806. 
3807.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3808.              today->tm_sec);
3809.     opt_vstats_file(filename);
