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

ffmpeg.c:3661:1: start of procedure opt_vstats()
3659. }
3660. 
3661. static void opt_vstats (void)
      ^
3662. {
3663.     char filename[40];

ffmpeg.c:3664:5: 
3662. {
3663.     char filename[40];
3664.     time_t today2 = time(NULL);
          ^
3665.     struct tm *today = localtime(&today2);
3666. 

ffmpeg.c:3665:5: 
3663.     char filename[40];
3664.     time_t today2 = time(NULL);
3665.     struct tm *today = localtime(&today2);
          ^
3666. 
3667.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3667:5: 
3665.     struct tm *today = localtime(&today2);
3666. 
3667.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3668.              today->tm_sec);
3669.     opt_vstats_file(filename);
