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

ffmpeg.c:4085:1: start of procedure opt_vstats()
4083. }
4084. 
4085. static void opt_vstats (void)
      ^
4086. {
4087.     char filename[40];

ffmpeg.c:4088:5: 
4086. {
4087.     char filename[40];
4088.     time_t today2 = time(NULL);
          ^
4089.     struct tm *today = localtime(&today2);
4090. 

ffmpeg.c:4089:5: 
4087.     char filename[40];
4088.     time_t today2 = time(NULL);
4089.     struct tm *today = localtime(&today2);
          ^
4090. 
4091.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4091:5: 
4089.     struct tm *today = localtime(&today2);
4090. 
4091.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4092.              today->tm_sec);
4093.     opt_vstats_file(filename);
