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

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

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

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

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