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

ffmpeg.c:3721:1: start of procedure opt_vstats()
3719. }
3720. 
3721. static void opt_vstats (void)
      ^
3722. {
3723.     char filename[40];

ffmpeg.c:3724:5: 
3722. {
3723.     char filename[40];
3724.     time_t today2 = time(NULL);
          ^
3725.     struct tm *today = localtime(&today2);
3726. 

ffmpeg.c:3725:5: 
3723.     char filename[40];
3724.     time_t today2 = time(NULL);
3725.     struct tm *today = localtime(&today2);
          ^
3726. 
3727.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3727:5: 
3725.     struct tm *today = localtime(&today2);
3726. 
3727.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3728.              today->tm_sec);
3729.     opt_vstats_file(filename);
