Rewrite nexa_decoder to handle both old and new Nexa formats