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

ffmpeg.c:3646:1: start of procedure opt_vstats()
3644. }
3645. 
3646. static void opt_vstats (void)
      ^
3647. {
3648.     char filename[40];

ffmpeg.c:3649:5: 
3647. {
3648.     char filename[40];
3649.     time_t today2 = time(NULL);
          ^
3650.     struct tm *today = localtime(&today2);
3651. 

ffmpeg.c:3650:5: 
3648.     char filename[40];
3649.     time_t today2 = time(NULL);
3650.     struct tm *today = localtime(&today2);
          ^
3651. 
3652.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3652:5: 
3650.     struct tm *today = localtime(&today2);
3651. 
3652.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3653.              today->tm_sec);
3654.     opt_vstats_file(filename);
