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

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

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

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

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