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

ffmpeg.c:3666:1: start of procedure opt_vstats()
3664. }
3665. 
3666. static void opt_vstats (void)
      ^
3667. {
3668.     char filename[40];

ffmpeg.c:3669:5: 
3667. {
3668.     char filename[40];
3669.     time_t today2 = time(NULL);
          ^
3670.     struct tm *today = localtime(&today2);
3671. 

ffmpeg.c:3670:5: 
3668.     char filename[40];
3669.     time_t today2 = time(NULL);
3670.     struct tm *today = localtime(&today2);
          ^
3671. 
3672.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3672:5: 
3670.     struct tm *today = localtime(&today2);
3671. 
3672.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3673.              today->tm_sec);
3674.     opt_vstats_file(filename);
