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

ffmpeg.c:4117:1: start of procedure opt_vstats()
4115. }
4116. 
4117. static void opt_vstats (void)
      ^
4118. {
4119.     char filename[40];

ffmpeg.c:4120:5: 
4118. {
4119.     char filename[40];
4120.     time_t today2 = time(NULL);
          ^
4121.     struct tm *today = localtime(&today2);
4122. 

ffmpeg.c:4121:5: 
4119.     char filename[40];
4120.     time_t today2 = time(NULL);
4121.     struct tm *today = localtime(&today2);
          ^
4122. 
4123.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4123:5: 
4121.     struct tm *today = localtime(&today2);
4122. 
4123.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4124.              today->tm_sec);
4125.     opt_vstats_file(filename);
