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

ffmpeg.c:3717:1: start of procedure opt_vstats()
3715. }
3716. 
3717. static void opt_vstats (void)
      ^
3718. {
3719.     char filename[40];

ffmpeg.c:3720:5: 
3718. {
3719.     char filename[40];
3720.     time_t today2 = time(NULL);
          ^
3721.     struct tm *today = localtime(&today2);
3722. 

ffmpeg.c:3721:5: 
3719.     char filename[40];
3720.     time_t today2 = time(NULL);
3721.     struct tm *today = localtime(&today2);
          ^
3722. 
3723.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3723:5: 
3721.     struct tm *today = localtime(&today2);
3722. 
3723.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3724.              today->tm_sec);
3725.     opt_vstats_file(filename);
