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

ffmpeg.c:3706:1: start of procedure opt_vstats()
3704. }
3705. 
3706. static void opt_vstats (void)
      ^
3707. {
3708.     char filename[40];

ffmpeg.c:3709:5: 
3707. {
3708.     char filename[40];
3709.     time_t today2 = time(NULL);
          ^
3710.     struct tm *today = localtime(&today2);
3711. 

ffmpeg.c:3710:5: 
3708.     char filename[40];
3709.     time_t today2 = time(NULL);
3710.     struct tm *today = localtime(&today2);
          ^
3711. 
3712.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3712:5: 
3710.     struct tm *today = localtime(&today2);
3711. 
3712.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3713.              today->tm_sec);
3714.     opt_vstats_file(filename);
