I wanted to test this so I saved a new JPEG image in MS Paint (this), but I am getting an error when I try to convert this image:
Unexpected end of input: pos=230 need=162 len=273
Error reading jpeg data from input file.
This image is in yuv420p. When I convert the image with ffmpeg to a new JPEG file, it works on it.