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

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

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

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

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