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

ffmpeg.c:3773:1: start of procedure opt_vstats()
3771. }
3772. 
3773. static void opt_vstats (void)
      ^
3774. {
3775.     char filename[40];

ffmpeg.c:3776:5: 
3774. {
3775.     char filename[40];
3776.     time_t today2 = time(NULL);
          ^
3777.     struct tm *today = localtime(&today2);
3778. 

ffmpeg.c:3777:5: 
3775.     char filename[40];
3776.     time_t today2 = time(NULL);
3777.     struct tm *today = localtime(&today2);
          ^
3778. 
3779.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3779:5: 
3777.     struct tm *today = localtime(&today2);
3778. 
3779.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3780.              today->tm_sec);
3781.     opt_vstats_file(filename);
