avcodec/mjpegdec: Fix runtime error: left shift of negative value -511