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

ffmpeg.c:4066:1: start of procedure opt_vstats()
4064. }
4065. 
4066. static void opt_vstats (void)
      ^
4067. {
4068.     char filename[40];

ffmpeg.c:4069:5: 
4067. {
4068.     char filename[40];
4069.     time_t today2 = time(NULL);
          ^
4070.     struct tm *today = localtime(&today2);
4071. 

ffmpeg.c:4070:5: 
4068.     char filename[40];
4069.     time_t today2 = time(NULL);
4070.     struct tm *today = localtime(&today2);
          ^
4071. 
4072.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4072:5: 
4070.     struct tm *today = localtime(&today2);
4071. 
4072.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4073.              today->tm_sec);
4074.     opt_vstats_file(filename);
