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

ffmpeg.c:4194:1: start of procedure opt_vstats()
4192. }
4193. 
4194. static int opt_vstats(const char *opt, const char *arg)
      ^
4195. {
4196.     char filename[40];

ffmpeg.c:4197:5: 
4195. {
4196.     char filename[40];
4197.     time_t today2 = time(NULL);
          ^
4198.     struct tm *today = localtime(&today2);
4199. 

ffmpeg.c:4198:5: 
4196.     char filename[40];
4197.     time_t today2 = time(NULL);
4198.     struct tm *today = localtime(&today2);
          ^
4199. 
4200.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4200:5: 
4198.     struct tm *today = localtime(&today2);
4199. 
4200.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4201.              today->tm_sec);
4202.     return opt_vstats_file(opt, filename);
