frame: Fix riceDecode implementation.