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

ffmpeg.c:3645:1: start of procedure opt_vstats()
3643. }
3644. 
3645. static void opt_vstats (void)
      ^
3646. {
3647.     char filename[40];

ffmpeg.c:3648:5: 
3646. {
3647.     char filename[40];
3648.     time_t today2 = time(NULL);
          ^
3649.     struct tm *today = localtime(&today2);
3650. 

ffmpeg.c:3649:5: 
3647.     char filename[40];
3648.     time_t today2 = time(NULL);
3649.     struct tm *today = localtime(&today2);
          ^
3650. 
3651.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3651:5: 
3649.     struct tm *today = localtime(&today2);
3650. 
3651.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3652.              today->tm_sec);
3653.     opt_vstats_file(filename);
