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

ffmpeg.c:3746:1: start of procedure opt_vstats()
3744. }
3745. 
3746. static void opt_vstats (void)
      ^
3747. {
3748.     char filename[40];

ffmpeg.c:3749:5: 
3747. {
3748.     char filename[40];
3749.     time_t today2 = time(NULL);
          ^
3750.     struct tm *today = localtime(&today2);
3751. 

ffmpeg.c:3750:5: 
3748.     char filename[40];
3749.     time_t today2 = time(NULL);
3750.     struct tm *today = localtime(&today2);
          ^
3751. 
3752.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3752:5: 
3750.     struct tm *today = localtime(&today2);
3751. 
3752.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3753.              today->tm_sec);
3754.     opt_vstats_file(filename);
