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

ffmpeg.c:3856:1: start of procedure opt_vstats()
3854. }
3855. 
3856. static void opt_vstats (void)
      ^
3857. {
3858.     char filename[40];

ffmpeg.c:3859:5: 
3857. {
3858.     char filename[40];
3859.     time_t today2 = time(NULL);
          ^
3860.     struct tm *today = localtime(&today2);
3861. 

ffmpeg.c:3860:5: 
3858.     char filename[40];
3859.     time_t today2 = time(NULL);
3860.     struct tm *today = localtime(&today2);
          ^
3861. 
3862.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3862:5: 
3860.     struct tm *today = localtime(&today2);
3861. 
3862.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3863.              today->tm_sec);
3864.     opt_vstats_file(filename);
