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

ffmpeg.c:4204:1: start of procedure opt_vstats()
4202. }
4203. 
4204. static void opt_vstats (void)
      ^
4205. {
4206.     char filename[40];

ffmpeg.c:4207:5: 
4205. {
4206.     char filename[40];
4207.     time_t today2 = time(NULL);
          ^
4208.     struct tm *today = localtime(&today2);
4209. 

ffmpeg.c:4208:5: 
4206.     char filename[40];
4207.     time_t today2 = time(NULL);
4208.     struct tm *today = localtime(&today2);
          ^
4209. 
4210.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4210:5: 
4208.     struct tm *today = localtime(&today2);
4209. 
4210.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4211.              today->tm_sec);
4212.     opt_vstats_file(filename);
