avcodec/mjpegdec: Fix integer overflow in shift