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

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

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

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

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