File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
platforms/iOS/plugins/CameraPlugin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ -(SqueakVideoGrabber*)initCapture:(int)deviceNum
159159 if (preset) {
160160 // Set the video output to store frame in BGRA (It is supposed to be faster)
161161 NSDictionary *outputSettings = [NSDictionary dictionaryWithObjectsAndKeys:
162- [NSNumber numberWithDouble : width], (id )kCVPixelBufferWidthKey ,
163- [NSNumber numberWithDouble : height], (id )kCVPixelBufferHeightKey ,
162+ [NSNumber numberWithInt : width], (id )kCVPixelBufferWidthKey ,
163+ [NSNumber numberWithInt : height], (id )kCVPixelBufferHeightKey ,
164164 [NSNumber numberWithInt: kCVPixelFormatType_32BGRA ], (id )kCVPixelBufferPixelFormatTypeKey ,
165165 nil ];
166166 [captureOutput setVideoSettings: outputSettings];
You can’t perform that action at this time.
0 commit comments