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

ffmpeg.c:4183:1: start of procedure opt_vstats()
4181. }
4182. 
4183. static int opt_vstats(const char *opt, const char *arg)
      ^
4184. {
4185.     char filename[40];

ffmpeg.c:4186:5: 
4184. {
4185.     char filename[40];
4186.     time_t today2 = time(NULL);
          ^
4187.     struct tm *today = localtime(&today2);
4188. 

ffmpeg.c:4187:5: 
4185.     char filename[40];
4186.     time_t today2 = time(NULL);
4187.     struct tm *today = localtime(&today2);
          ^
4188. 
4189.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4189:5: 
4187.     struct tm *today = localtime(&today2);
4188. 
4189.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4190.              today->tm_sec);
4191.     return opt_vstats_file(opt, filename);
