fix: Fix pixelFormat being native when FP is set (#2450)

This commit is contained in:
Marc Rousavy 2024-01-29 13:39:16 +01:00 committed by GitHub
parent 587f2b164b
commit d64fc08e16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -470,7 +470,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
}
const shouldEnableBufferCompression = props.video === true && frameProcessor == null
const pixelFormat = props.pixelFormat ?? (frameProcessor == null ? 'yuv' : 'native')
const pixelFormat = props.pixelFormat ?? (frameProcessor != null ? 'yuv' : 'native')
const torch = this.state.isRecordingWithFlash ? 'on' : props.torch
return (