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

ffmpeg.c:4081:1: start of procedure opt_vstats()
4079. }
4080. 
4081. static void opt_vstats (void)
      ^
4082. {
4083.     char filename[40];

ffmpeg.c:4084:5: 
4082. {
4083.     char filename[40];
4084.     time_t today2 = time(NULL);
          ^
4085.     struct tm *today = localtime(&today2);
4086. 

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

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