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

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

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

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

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