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

ffmpeg.c:3672:1: start of procedure opt_vstats()
3670. }
3671. 
3672. static void opt_vstats (void)
      ^
3673. {
3674.     char filename[40];

ffmpeg.c:3675:5: 
3673. {
3674.     char filename[40];
3675.     time_t today2 = time(NULL);
          ^
3676.     struct tm *today = localtime(&today2);
3677. 

ffmpeg.c:3676:5: 
3674.     char filename[40];
3675.     time_t today2 = time(NULL);
3676.     struct tm *today = localtime(&today2);
          ^
3677. 
3678.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3678:5: 
3676.     struct tm *today = localtime(&today2);
3677. 
3678.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3679.              today->tm_sec);
3680.     opt_vstats_file(filename);
