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

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

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

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

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