It seems the problem is a bit higher up in the code yet. Using libjpeg results in the same issue, so the RGB buffer is corrupted and the corrupted RGB buffer is sent to the jpeg block which therefore got blamed for the problem. The RGB buffer is created by vc.ril.isp from YUV420 packets provided by ...