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

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

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

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

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