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

ffmpeg.c:4127:1: start of procedure opt_vstats()
4125. }
4126. 
4127. static void opt_vstats (void)
      ^
4128. {
4129.     char filename[40];

ffmpeg.c:4130:5: 
4128. {
4129.     char filename[40];
4130.     time_t today2 = time(NULL);
          ^
4131.     struct tm *today = localtime(&today2);
4132. 

ffmpeg.c:4131:5: 
4129.     char filename[40];
4130.     time_t today2 = time(NULL);
4131.     struct tm *today = localtime(&today2);
          ^
4132. 
4133.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4133:5: 
4131.     struct tm *today = localtime(&today2);
4132. 
4133.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4134.              today->tm_sec);
4135.     opt_vstats_file(filename);
