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

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

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

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

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