mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
Fix incorrect scale on back camera in reverse landscape (#1559)
Co-authored-by: bemusementpark <bemusementpark>
This commit is contained in:
parent
bb239a4048
commit
bc968dcdae
@ -14,7 +14,7 @@ class RemoteRotationVideoProxySink: VideoSink {
|
||||
val thisSink = targetSink ?: return
|
||||
val thisFrame = frame ?: return
|
||||
|
||||
val modifiedRotation = thisFrame.rotation - rotation
|
||||
val modifiedRotation = (thisFrame.rotation - rotation + 360) % 360
|
||||
|
||||
val newFrame = VideoFrame(thisFrame.buffer, modifiedRotation, thisFrame.timestampNs)
|
||||
thisSink.onFrame(newFrame)
|
||||
|
Loading…
Reference in New Issue
Block a user