Segmentation fault (core dumped) when convert color with openCV on jetson nano

Hi,
There is a verified patch:

It is to save frames to JPEGs. Could you try it? Would like to see if this patch works.