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

ffmpeg.c:3769:1: start of procedure opt_vstats()
3767. }
3768. 
3769. static void opt_vstats (void)
      ^
3770. {
3771.     char filename[40];

ffmpeg.c:3772:5: 
3770. {
3771.     char filename[40];
3772.     time_t today2 = time(NULL);
          ^
3773.     struct tm *today = localtime(&today2);
3774. 

ffmpeg.c:3773:5: 
3771.     char filename[40];
3772.     time_t today2 = time(NULL);
3773.     struct tm *today = localtime(&today2);
          ^
3774. 
3775.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3775:5: 
3773.     struct tm *today = localtime(&today2);
3774. 
3775.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3776.              today->tm_sec);
3777.     opt_vstats_file(filename);
