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

ffmpeg.c:4065:1: start of procedure opt_vstats()
4063. }
4064. 
4065. static void opt_vstats (void)
      ^
4066. {
4067.     char filename[40];

ffmpeg.c:4068:5: 
4066. {
4067.     char filename[40];
4068.     time_t today2 = time(NULL);
          ^
4069.     struct tm *today = localtime(&today2);
4070. 

ffmpeg.c:4069:5: 
4067.     char filename[40];
4068.     time_t today2 = time(NULL);
4069.     struct tm *today = localtime(&today2);
          ^
4070. 
4071.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4071:5: 
4069.     struct tm *today = localtime(&today2);
4070. 
4071.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4072.              today->tm_sec);
4073.     opt_vstats_file(filename);
