Unverified Commit 17402254 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky Committed by GitHub

fixed incorrect dump of the pixel format

parent a13862e9
...@@ -1052,7 +1052,9 @@ IplImage* CvCaptureFile::retrieveFramePixelBuffer() { ...@@ -1052,7 +1052,9 @@ IplImage* CvCaptureFile::retrieveFramePixelBuffer() {
return 0; return 0;
} }
} else { } 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); CVPixelBufferUnlockBaseAddress(mGrabbedPixels, 0);
CVBufferRelease(mGrabbedPixels); CVBufferRelease(mGrabbedPixels);
mGrabbedPixels = NULL; mGrabbedPixels = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment