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

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

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

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

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