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

ffmpeg.c:4058:1: start of procedure opt_vstats()
4056. }
4057. 
4058. static void opt_vstats (void)
      ^
4059. {
4060.     char filename[40];

ffmpeg.c:4061:5: 
4059. {
4060.     char filename[40];
4061.     time_t today2 = time(NULL);
          ^
4062.     struct tm *today = localtime(&today2);
4063. 

ffmpeg.c:4062:5: 
4060.     char filename[40];
4061.     time_t today2 = time(NULL);
4062.     struct tm *today = localtime(&today2);
          ^
4063. 
4064.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4064:5: 
4062.     struct tm *today = localtime(&today2);
4063. 
4064.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4065.              today->tm_sec);
4066.     opt_vstats_file(filename);
