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

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

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

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

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