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

ffmpeg.c:4155:1: start of procedure opt_vstats()
4153. }
4154. 
4155. static void opt_vstats (void)
      ^
4156. {
4157.     char filename[40];

ffmpeg.c:4158:5: 
4156. {
4157.     char filename[40];
4158.     time_t today2 = time(NULL);
          ^
4159.     struct tm *today = localtime(&today2);
4160. 

ffmpeg.c:4159:5: 
4157.     char filename[40];
4158.     time_t today2 = time(NULL);
4159.     struct tm *today = localtime(&today2);
          ^
4160. 
4161.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4161:5: 
4159.     struct tm *today = localtime(&today2);
4160. 
4161.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4162.              today->tm_sec);
4163.     opt_vstats_file(filename);
