Skip to content

Commit d64fc08

Browse files
authored
fix: Fix pixelFormat being native when FP is set (#2450)
1 parent 587f2b1 commit d64fc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/Camera.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
470470
}
471471

472472
const shouldEnableBufferCompression = props.video === true && frameProcessor == null
473-
const pixelFormat = props.pixelFormat ?? (frameProcessor == null ? 'yuv' : 'native')
473+
const pixelFormat = props.pixelFormat ?? (frameProcessor != null ? 'yuv' : 'native')
474474
const torch = this.state.isRecordingWithFlash ? 'on' : props.torch
475475

476476
return (

0 commit comments

Comments
 (0)