|
@@ -346,19 +346,19 @@ open class PQVideoListModel: PQBaseModel, BFVideoItemProtocol {
|
|
|
totalTimeParas = Float64(totalTime).formatDurationToHMS()
|
|
|
}
|
|
|
if jsonDict.keys.contains("width") {
|
|
|
- width = CGFloat(Int("\(jsonDict["width"] ?? 0)") ?? 0)
|
|
|
+ width = CGFloat(Float("\(jsonDict["width"] ?? 0)") ?? 0)
|
|
|
if rotate > 0 {
|
|
|
- originImageH = CGFloat(Int("\(jsonDict["width"] ?? 0)") ?? 0)
|
|
|
+ originImageH = width
|
|
|
} else {
|
|
|
- originImageW = CGFloat(Int("\(jsonDict["width"] ?? 0)") ?? 0)
|
|
|
+ originImageW = width
|
|
|
}
|
|
|
}
|
|
|
if jsonDict.keys.contains("height") {
|
|
|
- height = CGFloat(Int("\(jsonDict["height"] ?? 0)") ?? 0)
|
|
|
+ height = CGFloat(Float("\(jsonDict["height"] ?? 0)") ?? 0)
|
|
|
if rotate > 0 {
|
|
|
- originImageW = CGFloat(Int("\(jsonDict["height"] ?? 0)") ?? 0)
|
|
|
+ originImageW = height
|
|
|
} else {
|
|
|
- originImageH = CGFloat(Int("\(jsonDict["height"] ?? 0)") ?? 0)
|
|
|
+ originImageH = height
|
|
|
}
|
|
|
}
|
|
|
if jsonDict.keys.contains("produceProjectDataV2"), ((jsonDict["produceProjectDataV2"] as? [String: Any])?.keys.count ?? 0) > 0 {
|