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

ffmpeg.c:3635:1: start of procedure opt_vstats()
3633. }
3634. 
3635. static void opt_vstats (void)
      ^
3636. {
3637.     char filename[40];

ffmpeg.c:3638:5: 
3636. {
3637.     char filename[40];
3638.     time_t today2 = time(NULL);
          ^
3639.     struct tm *today = localtime(&today2);
3640. 

ffmpeg.c:3639:5: 
3637.     char filename[40];
3638.     time_t today2 = time(NULL);
3639.     struct tm *today = localtime(&today2);
          ^
3640. 
3641.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3641:5: 
3639.     struct tm *today = localtime(&today2);
3640. 
3641.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3642.              today->tm_sec);
3643.     opt_vstats_file(filename);
