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

ffmpeg.c:4200:1: start of procedure opt_vstats()
4198. }
4199. 
4200. static void opt_vstats (void)
      ^
4201. {
4202.     char filename[40];

ffmpeg.c:4203:5: 
4201. {
4202.     char filename[40];
4203.     time_t today2 = time(NULL);
          ^
4204.     struct tm *today = localtime(&today2);
4205. 

ffmpeg.c:4204:5: 
4202.     char filename[40];
4203.     time_t today2 = time(NULL);
4204.     struct tm *today = localtime(&today2);
          ^
4205. 
4206.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4206:5: 
4204.     struct tm *today = localtime(&today2);
4205. 
4206.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4207.              today->tm_sec);
4208.     opt_vstats_file(filename);
