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

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

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

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

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