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

ffmpeg.c:3694:1: start of procedure opt_vstats()
3692. }
3693. 
3694. static void opt_vstats (void)
      ^
3695. {
3696.     char filename[40];

ffmpeg.c:3697:5: 
3695. {
3696.     char filename[40];
3697.     time_t today2 = time(NULL);
          ^
3698.     struct tm *today = localtime(&today2);
3699. 

ffmpeg.c:3698:5: 
3696.     char filename[40];
3697.     time_t today2 = time(NULL);
3698.     struct tm *today = localtime(&today2);
          ^
3699. 
3700.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3700:5: 
3698.     struct tm *today = localtime(&today2);
3699. 
3700.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3701.              today->tm_sec);
3702.     opt_vstats_file(filename);
