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

ffmpeg.c:3855:1: start of procedure opt_vstats()
3853. }
3854. 
3855. static void opt_vstats (void)
      ^
3856. {
3857.     char filename[40];

ffmpeg.c:3858:5: 
3856. {
3857.     char filename[40];
3858.     time_t today2 = time(NULL);
          ^
3859.     struct tm *today = localtime(&today2);
3860. 

ffmpeg.c:3859:5: 
3857.     char filename[40];
3858.     time_t today2 = time(NULL);
3859.     struct tm *today = localtime(&today2);
          ^
3860. 
3861.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:3861:5: 
3859.     struct tm *today = localtime(&today2);
3860. 
3861.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3862.              today->tm_sec);
3863.     opt_vstats_file(filename);
