Demosaicing crashing when I use with CV_32S Mat

Hello,
I have rawImage created for 640x480 or any other resolution. I am able to demosaicing upto 16 bits (both CV_8C and CV_16C). But when I try to do same with CV_32S matrix, cvtColor() crashes.

Below given are the lines I am using:
cv::Mat rawImage = createRawImage()
cv::cvtColor(scaledImage, demosaicedImage, cv::COLOR_BayerRGGB2BGR);

Any suggestion or solution is appreciated.

Regards,
Pralhadrao