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

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

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

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

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