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

ffmpeg.c:3759:1: start of procedure opt_vstats()
3757. }
3758. 
3759. static void opt_vstats (void)
      ^
3760. {
3761.     char filename[40];

ffmpeg.c:3762:5: 
3760. {
3761.     char filename[40];
3762.     time_t today2 = time(NULL);
          ^
3763.     struct tm *today = localtime(&today2);
3764. 

ffmpeg.c:3763:5: 
3761.     char filename[40];
3762.     time_t today2 = time(NULL);
3763.     struct tm *today = localtime(&today2);
          ^
3764. 
3765.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3765:5: 
3763.     struct tm *today = localtime(&today2);
3764. 
3765.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3766.              today->tm_sec);
3767.     opt_vstats_file(filename);
