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

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

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

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

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