The CvBridge::fromImage uses cvInitMatHeader witht the encoding_as_cvtype return value, witch is -1 on a non known type. Therefore a unkown type like a bayer pattern will crash on a "passthrough" call.