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

ffmpeg.c:3807:1: start of procedure opt_vstats()
3805. }
3806. 
3807. static void opt_vstats (void)
      ^
3808. {
3809.     char filename[40];

ffmpeg.c:3810:5: 
3808. {
3809.     char filename[40];
3810.     time_t today2 = time(NULL);
          ^
3811.     struct tm *today = localtime(&today2);
3812. 

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

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