fixed incorrect dump of the pixel format

pull/15464/head
Vadim Pisarevsky 5 years ago committed by GitHub
parent a13862e924
commit 174022547f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/videoio/src/cap_avfoundation.mm

@ -1052,7 +1052,9 @@ IplImage* CvCaptureFile::retrieveFramePixelBuffer() {
return 0;
}
} else {
fprintf(stderr, "OpenCV: unsupported pixel format '%s'\n", pixelFormat);
char pfBuf[] = { (char)pixelFormat, (char)(pixelFormat >> 8),
(char)(pixelFormat >> 16), (char)(pixelFormat >> 24), '\0' };
fprintf(stderr, "OpenCV: unsupported pixel format '%s'\n", pfBuf);
CVPixelBufferUnlockBaseAddress(mGrabbedPixels, 0);
CVBufferRelease(mGrabbedPixels);
mGrabbedPixels = NULL;

Loading…
Cancel
Save