wrong buffervsize

camBufferSize = iplImg->imageSize/iplImg->nChannels