Project import generated by Copybara.
GitOrigin-RevId: 1e13be30e2c6838d4a2ff768a39c414bc80534bb
This commit is contained in:
committed by
Sebastian Schmidt
parent
63e679d99c
commit
4dc4b19ddb
@@ -221,7 +221,7 @@ static void EnsureOutputDirFor(NSString *outputFile) {
|
||||
aWidth != bWidth ||
|
||||
aHeight != bHeight) return NO;
|
||||
|
||||
size_t bytesPerPixel; // is there a generic way to get this from a pixel buffer?
|
||||
size_t bytesPerPixel = 0; // is there a generic way to get this from a pixel buffer?
|
||||
switch (aPixelFormat) {
|
||||
case kCVPixelFormatType_32BGRA:
|
||||
bytesPerPixel = 4;
|
||||
|
||||
Reference in New Issue
Block a user