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

ffmpeg.c:3959:1: start of procedure opt_vstats()
3957. }
3958. 
3959. static void opt_vstats (void)
      ^
3960. {
3961.     char filename[40];

ffmpeg.c:3962:5: 
3960. {
3961.     char filename[40];
3962.     time_t today2 = time(NULL);
          ^
3963.     struct tm *today = localtime(&today2);
3964. 

ffmpeg.c:3963:5: 
3961.     char filename[40];
3962.     time_t today2 = time(NULL);
3963.     struct tm *today = localtime(&today2);
          ^
3964. 
3965.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3965:5: 
3963.     struct tm *today = localtime(&today2);
3964. 
3965.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3966.              today->tm_sec);
3967.     opt_vstats_file(filename);
