issues with jpegNPP

I am running the jpegNPP sample, which loads a jpeg and scales it. But looks like it didn’t process correctly and the result image has a green border on top and left.

External Media

So how to fix this?
scaled.jpg

scaled.jpg