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

ffmpeg.c:4207:1: start of procedure opt_vstats()
4205. }
4206. 
4207. static int opt_vstats(const char *opt, const char *arg)
      ^
4208. {
4209.     char filename[40];

ffmpeg.c:4210:5: 
4208. {
4209.     char filename[40];
4210.     time_t today2 = time(NULL);
          ^
4211.     struct tm *today = localtime(&today2);
4212. 

ffmpeg.c:4211:5: 
4209.     char filename[40];
4210.     time_t today2 = time(NULL);
4211.     struct tm *today = localtime(&today2);
          ^
4212. 
4213.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4213:5: 
4211.     struct tm *today = localtime(&today2);
4212. 
4213.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4214.              today->tm_sec);
4215.     return opt_vstats_file(opt, filename);
