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

ffmpeg.c:4169:1: start of procedure opt_vstats()
4167. }
4168. 
4169. static int opt_vstats(const char *opt, const char *arg)
      ^
4170. {
4171.     char filename[40];

ffmpeg.c:4172:5: 
4170. {
4171.     char filename[40];
4172.     time_t today2 = time(NULL);
          ^
4173.     struct tm *today = localtime(&today2);
4174. 

ffmpeg.c:4173:5: 
4171.     char filename[40];
4172.     time_t today2 = time(NULL);
4173.     struct tm *today = localtime(&today2);
          ^
4174. 
4175.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4175:5: 
4173.     struct tm *today = localtime(&today2);
4174. 
4175.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4176.              today->tm_sec);
4177.     return opt_vstats_file(opt, filename);
