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

ffmpeg.c:3679:1: start of procedure opt_vstats()
3677. }
3678. 
3679. static void opt_vstats (void)
      ^
3680. {
3681.     char filename[40];

ffmpeg.c:3682:5: 
3680. {
3681.     char filename[40];
3682.     time_t today2 = time(NULL);
          ^
3683.     struct tm *today = localtime(&today2);
3684. 

ffmpeg.c:3683:5: 
3681.     char filename[40];
3682.     time_t today2 = time(NULL);
3683.     struct tm *today = localtime(&today2);
          ^
3684. 
3685.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3685:5: 
3683.     struct tm *today = localtime(&today2);
3684. 
3685.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3686.              today->tm_sec);
3687.     opt_vstats_file(filename);
