@ -389,7 +389,7 @@ static int filetime_to_iso8601(char *buf, int buf_size, int64_t value)
struct tm * tm = gmtime ( & t ) ;
if ( ! tm )
return - 1 ;
strftime ( buf , buf_size , " %Y-%m-%d %H:%M:%S " , gm ti me ( & t ) ) ;
strftime ( buf , buf_size , " %Y-%m-%d %H:%M:%S " , tm ) ;
return 0 ;
}
@ -403,7 +403,7 @@ static int crazytime_to_iso8601(char *buf, int buf_size, int64_t value)
struct tm * tm = gmtime ( & t ) ;
if ( ! tm )
return - 1 ;
strftime ( buf , buf_size , " %Y-%m-%d %H:%M:%S " , gm ti me ( & t ) ) ;
strftime ( buf , buf_size , " %Y-%m-%d %H:%M:%S " , tm ) ;
return 0 ;
}
@ -414,10 +414,10 @@ static int crazytime_to_iso8601(char *buf, int buf_size, int64_t value)
static int oledate_to_iso8601 ( char * buf , int buf_size , int64_t value )
{
time_t t = ( av_int2double ( value ) - 25569.0 ) * 86400 ;
struct tm * resul t= gmtime ( & t ) ;
if ( ! resul t)
struct tm * tm = gmtime ( & t ) ;
if ( ! tm )
return - 1 ;
strftime ( buf , buf_size , " %Y-%m-%d %H:%M:%S " , resul t) ;
strftime ( buf , buf_size , " %Y-%m-%d %H:%M:%S " , tm ) ;
return 0 ;
}