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

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

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

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

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