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

ffmpeg.c:3710:1: start of procedure opt_vstats()
3708. }
3709. 
3710. static void opt_vstats (void)
      ^
3711. {
3712.     char filename[40];

ffmpeg.c:3713:5: 
3711. {
3712.     char filename[40];
3713.     time_t today2 = time(NULL);
          ^
3714.     struct tm *today = localtime(&today2);
3715. 

ffmpeg.c:3714:5: 
3712.     char filename[40];
3713.     time_t today2 = time(NULL);
3714.     struct tm *today = localtime(&today2);
          ^
3715. 
3716.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3716:5: 
3714.     struct tm *today = localtime(&today2);
3715. 
3716.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3717.              today->tm_sec);
3718.     opt_vstats_file(filename);
