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

ffmpeg.c:4163:1: start of procedure opt_vstats()
4161. }
4162. 
4163. static int opt_vstats(const char *opt, const char *arg)
      ^
4164. {
4165.     char filename[40];

ffmpeg.c:4166:5: 
4164. {
4165.     char filename[40];
4166.     time_t today2 = time(NULL);
          ^
4167.     struct tm *today = localtime(&today2);
4168. 

ffmpeg.c:4167:5: 
4165.     char filename[40];
4166.     time_t today2 = time(NULL);
4167.     struct tm *today = localtime(&today2);
          ^
4168. 
4169.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4169:5: 
4167.     struct tm *today = localtime(&today2);
4168. 
4169.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4170.              today->tm_sec);
4171.     return opt_vstats_file(opt, filename);

static int opt_vstats(const char *opt, const char *arg)
{
    char filename[40];
    time_t today2 = time(NULL);
    struct tm *today = localtime(&today2);
    snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
             today->tm_sec);
    return opt_vstats_file(opt, filename);
}
['static int opt_vstats(const char *opt, const char *arg)\n{\n    char filename[40];\n    time_t today2 = time(NULL);\n    struct tm *today = localtime(&today2);\n    snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,\n             today->tm_sec);\n    return opt_vstats_file(opt, filename);\n}']