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

ffmpeg.c:4148:1: start of procedure opt_vstats()
4146. }
4147. 
4148. static void opt_vstats (void)
      ^
4149. {
4150.     char filename[40];

ffmpeg.c:4151:5: 
4149. {
4150.     char filename[40];
4151.     time_t today2 = time(NULL);
          ^
4152.     struct tm *today = localtime(&today2);
4153. 

ffmpeg.c:4152:5: 
4150.     char filename[40];
4151.     time_t today2 = time(NULL);
4152.     struct tm *today = localtime(&today2);
          ^
4153. 
4154.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4154:5: 
4152.     struct tm *today = localtime(&today2);
4153. 
4154.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4155.              today->tm_sec);
4156.     opt_vstats_file(filename);
