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

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

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

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

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