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

ffmpeg.c:4122:1: start of procedure opt_vstats()
4120. }
4121. 
4122. static void opt_vstats (void)
      ^
4123. {
4124.     char filename[40];

ffmpeg.c:4125:5: 
4123. {
4124.     char filename[40];
4125.     time_t today2 = time(NULL);
          ^
4126.     struct tm *today = localtime(&today2);
4127. 

ffmpeg.c:4126:5: 
4124.     char filename[40];
4125.     time_t today2 = time(NULL);
4126.     struct tm *today = localtime(&today2);
          ^
4127. 
4128.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4128:5: 
4126.     struct tm *today = localtime(&today2);
4127. 
4128.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4129.              today->tm_sec);
4130.     opt_vstats_file(filename);
