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

ffmpeg.c:3601:1: start of procedure opt_vstats()
3599. }
3600. 
3601. static void opt_vstats (void)
      ^
3602. {
3603.     char filename[40];

ffmpeg.c:3604:5: 
3602. {
3603.     char filename[40];
3604.     time_t today2 = time(NULL);
          ^
3605.     struct tm *today = localtime(&today2);
3606. 

ffmpeg.c:3605:5: 
3603.     char filename[40];
3604.     time_t today2 = time(NULL);
3605.     struct tm *today = localtime(&today2);
          ^
3606. 
3607.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3607:5: 
3605.     struct tm *today = localtime(&today2);
3606. 
3607.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3608.              today->tm_sec);
3609.     opt_vstats_file(filename);
