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

ffmpeg.c:3945:1: start of procedure opt_vstats()
3943. }
3944. 
3945. static void opt_vstats (void)
      ^
3946. {
3947.     char filename[40];

ffmpeg.c:3948:5: 
3946. {
3947.     char filename[40];
3948.     time_t today2 = time(NULL);
          ^
3949.     struct tm *today = localtime(&today2);
3950. 

ffmpeg.c:3949:5: 
3947.     char filename[40];
3948.     time_t today2 = time(NULL);
3949.     struct tm *today = localtime(&today2);
          ^
3950. 
3951.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3951:5: 
3949.     struct tm *today = localtime(&today2);
3950. 
3951.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3952.              today->tm_sec);
3953.     opt_vstats_file(filename);
