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

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

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

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

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