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

ffmpeg.c:4150:1: start of procedure opt_vstats()
4148. }
4149. 
4150. static void opt_vstats (void)
      ^
4151. {
4152.     char filename[40];

ffmpeg.c:4153:5: 
4151. {
4152.     char filename[40];
4153.     time_t today2 = time(NULL);
          ^
4154.     struct tm *today = localtime(&today2);
4155. 

ffmpeg.c:4154:5: 
4152.     char filename[40];
4153.     time_t today2 = time(NULL);
4154.     struct tm *today = localtime(&today2);
          ^
4155. 
4156.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4156:5: 
4154.     struct tm *today = localtime(&today2);
4155. 
4156.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4157.              today->tm_sec);
4158.     opt_vstats_file(filename);
