This changes the decoder function return flag meaning from "result error" to "resultValid". This makes it more consistent with normal C standard of returning 0 on success.