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

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

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

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

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