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

ffmpeg.c:3664:1: start of procedure opt_vstats()
3662. }
3663. 
3664. static void opt_vstats (void)
      ^
3665. {
3666.     char filename[40];

ffmpeg.c:3667:5: 
3665. {
3666.     char filename[40];
3667.     time_t today2 = time(NULL);
          ^
3668.     struct tm *today = localtime(&today2);
3669. 

ffmpeg.c:3668:5: 
3666.     char filename[40];
3667.     time_t today2 = time(NULL);
3668.     struct tm *today = localtime(&today2);
          ^
3669. 
3670.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3670:5: 
3668.     struct tm *today = localtime(&today2);
3669. 
3670.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3671.              today->tm_sec);
3672.     opt_vstats_file(filename);
