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

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

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

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

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