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

ffmpeg.c:4116:1: start of procedure opt_vstats()
4114. }
4115. 
4116. static void opt_vstats (void)
      ^
4117. {
4118.     char filename[40];

ffmpeg.c:4119:5: 
4117. {
4118.     char filename[40];
4119.     time_t today2 = time(NULL);
          ^
4120.     struct tm *today = localtime(&today2);
4121. 

ffmpeg.c:4120:5: 
4118.     char filename[40];
4119.     time_t today2 = time(NULL);
4120.     struct tm *today = localtime(&today2);
          ^
4121. 
4122.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4122:5: 
4120.     struct tm *today = localtime(&today2);
4121. 
4122.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4123.              today->tm_sec);
4124.     opt_vstats_file(filename);
