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

ffmpeg.c:4075:1: start of procedure opt_vstats()
4073. }
4074. 
4075. static void opt_vstats (void)
      ^
4076. {
4077.     char filename[40];

ffmpeg.c:4078:5: 
4076. {
4077.     char filename[40];
4078.     time_t today2 = time(NULL);
          ^
4079.     struct tm *today = localtime(&today2);
4080. 

ffmpeg.c:4079:5: 
4077.     char filename[40];
4078.     time_t today2 = time(NULL);
4079.     struct tm *today = localtime(&today2);
          ^
4080. 
4081.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4081:5: 
4079.     struct tm *today = localtime(&today2);
4080. 
4081.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4082.              today->tm_sec);
4083.     opt_vstats_file(filename);
