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

ffmpeg.c:4102:1: start of procedure opt_vstats()
4100. }
4101. 
4102. static void opt_vstats (void)
      ^
4103. {
4104.     char filename[40];

ffmpeg.c:4105:5: 
4103. {
4104.     char filename[40];
4105.     time_t today2 = time(NULL);
          ^
4106.     struct tm *today = localtime(&today2);
4107. 

ffmpeg.c:4106:5: 
4104.     char filename[40];
4105.     time_t today2 = time(NULL);
4106.     struct tm *today = localtime(&today2);
          ^
4107. 
4108.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4108:5: 
4106.     struct tm *today = localtime(&today2);
4107. 
4108.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4109.              today->tm_sec);
4110.     opt_vstats_file(filename);
