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

ffmpeg.c:4146:1: start of procedure opt_vstats()
4144. }
4145. 
4146. static int opt_vstats(const char *opt, const char *arg)
      ^
4147. {
4148.     char filename[40];

ffmpeg.c:4149:5: 
4147. {
4148.     char filename[40];
4149.     time_t today2 = time(NULL);
          ^
4150.     struct tm *today = localtime(&today2);
4151. 

ffmpeg.c:4150:5: 
4148.     char filename[40];
4149.     time_t today2 = time(NULL);
4150.     struct tm *today = localtime(&today2);
          ^
4151. 
4152.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4152:5: 
4150.     struct tm *today = localtime(&today2);
4151. 
4152.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4153.              today->tm_sec);
4154.     return opt_vstats_file(opt, filename);
