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

ffmpeg.c:4126:1: start of procedure opt_vstats()
4124. }
4125. 
4126. static void opt_vstats (void)
      ^
4127. {
4128.     char filename[40];

ffmpeg.c:4129:5: 
4127. {
4128.     char filename[40];
4129.     time_t today2 = time(NULL);
          ^
4130.     struct tm *today = localtime(&today2);
4131. 

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

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