The problem here is that when I first decode this image and then encode it again the result (see lower image) does not exactly like the source image (see upper image). At first sight they look the same, but if you look closely, there is a small line of noise on the bottom of the encoded image, so that the whole image is a little bit squeezed. So my question is, am I doing something wrong?
Ok, I tried exactly what you proposed (upgrade to 5.1.3 and use the different libnvjpeg.so) but the image is still wrong. Anything else to do to fix this?