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

ffmpeg.c:3875:1: start of procedure opt_vstats()
3873. }
3874. 
3875. static void opt_vstats (void)
      ^
3876. {
3877.     char filename[40];

ffmpeg.c:3878:5: 
3876. {
3877.     char filename[40];
3878.     time_t today2 = time(NULL);
          ^
3879.     struct tm *today = localtime(&today2);
3880. 

ffmpeg.c:3879:5: 
3877.     char filename[40];
3878.     time_t today2 = time(NULL);
3879.     struct tm *today = localtime(&today2);
          ^
3880. 
3881.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3881:5: 
3879.     struct tm *today = localtime(&today2);
3880. 
3881.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3882.              today->tm_sec);
3883.     opt_vstats_file(filename);
