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

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

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

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

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