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

ffmpeg.c:3860:1: start of procedure opt_vstats()
3858. }
3859. 
3860. static void opt_vstats (void)
      ^
3861. {
3862.     char filename[40];

ffmpeg.c:3863:5: 
3861. {
3862.     char filename[40];
3863.     time_t today2 = time(NULL);
          ^
3864.     struct tm *today = localtime(&today2);
3865. 

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

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