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

ffmpeg.c:4136:1: start of procedure opt_vstats()
4134. }
4135. 
4136. static void opt_vstats (void)
      ^
4137. {
4138.     char filename[40];

ffmpeg.c:4139:5: 
4137. {
4138.     char filename[40];
4139.     time_t today2 = time(NULL);
          ^
4140.     struct tm *today = localtime(&today2);
4141. 

ffmpeg.c:4140:5: 
4138.     char filename[40];
4139.     time_t today2 = time(NULL);
4140.     struct tm *today = localtime(&today2);
          ^
4141. 
4142.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4142:5: 
4140.     struct tm *today = localtime(&today2);
4141. 
4142.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4143.              today->tm_sec);
4144.     opt_vstats_file(filename);
