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

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

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

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

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