mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix condition
This commit is contained in:
@@ -19,7 +19,7 @@ final class SoftwareAnimationRenderer: ASDisplayNode, AnimationRenderer {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
let image = generateImagePixel(CGSize(width: CGFloat(width), height: CGFloat(height)), scale: 1.0, pixelGenerator: { _, pixelData, bytesPerRow in
|
let image = generateImagePixel(CGSize(width: CGFloat(width), height: CGFloat(height)), scale: 1.0, pixelGenerator: { _, pixelData, contextBytesPerRow in
|
||||||
switch type {
|
switch type {
|
||||||
case .yuva:
|
case .yuva:
|
||||||
data.withUnsafeBytes { bytes -> Void in
|
data.withUnsafeBytes { bytes -> Void in
|
||||||
@@ -30,7 +30,7 @@ final class SoftwareAnimationRenderer: ASDisplayNode, AnimationRenderer {
|
|||||||
assert(false)
|
assert(false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
decodeYUVAToRGBA(baseAddress.assumingMemoryBound(to: UInt8.self), pixelData, Int32(width), Int32(height), Int32(bytesPerRow))
|
decodeYUVAToRGBA(baseAddress.assumingMemoryBound(to: UInt8.self), pixelData, Int32(width), Int32(height), Int32(contextBytesPerRow))
|
||||||
}
|
}
|
||||||
case .argb:
|
case .argb:
|
||||||
data.withUnsafeBytes { bytes -> Void in
|
data.withUnsafeBytes { bytes -> Void in
|
||||||
|
|||||||
Reference in New Issue
Block a user