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

ffmpeg.c:4211:1: start of procedure opt_vstats()
4209. }
4210. 
4211. static int opt_vstats(const char *opt, const char *arg)
      ^
4212. {
4213.     char filename[40];

ffmpeg.c:4214:5: 
4212. {
4213.     char filename[40];
4214.     time_t today2 = time(NULL);
          ^
4215.     struct tm *today = localtime(&today2);
4216. 

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

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